I have a variable which contains a html element:
alert(aData[3]);
gives me:
BLA BLA BLA
<div style="display: none">
<table>....</table>
</div>
I'm trying to figure out how to get the contents WITHIN the div-tag from the variable aData[3]
via jQuery. I tried various things:
elem = $(aData[3]).find("div");
alert(elem.html());
// OR
elem = $(aData[3]).find("div");
alert(elem[0].html());
// OR
elem = $(aData[3]).find("div");
alert($(elem[0]).html());
// OR
elem = $(aData[3], 'div');
alert(elem.html());
Can't get any of those to work. How to the correct version? :( Thanks a lot