My dom looks like:
<div class="blah">
<a href=""><img .. ></a>
<strong>blah blah</strong>
<a href=""><img /></a>
</div>
How can I get the value of the strong when I know the class is "blah" ?
$(".blah").find("strong")
doesn't work?
Try this:
$(".blah").find("strong").html();
$(".blah").find("strong") will only return the jQuery object, not it's contents.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With