I have something like this:
function (foo) {
}
Foo contains some HTML. For example:
<div>
<div>
<div class="myclass>
<div>
Hello World
</div>
</div>
</div>
</div>
I need to extract that info off the variable somehow.
I have tried:
function (foo) {
$('.myclass > script').text()
}
I probably need some way to select foo instead. Any help?
scriptelement that is a child of.myclassare you trying to select here?