I have the below html structure, i want to find the inner html of first div with class as "popcontent" using jQuery
<div> <div class="popContent">1</div> <div class="popContent">2</div> </div>
You will kick yourself..... :)
$(".popContent:first").html()
first occurrence of class in div
$('.popContent').eq(0).html('value to set');
Second occurrence of class in div
$('.popContent').eq(1).html('value to set');
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