I'm trying to find a text inside a div. The code I have works in all browsers except IE7.
Below is the code:
<div class="demo">
Preveiw
</div>
Jquery:
$(".demo:contains('Preveiw').length") // returns 0 in IE7
Try this instead
$(".demo:contains('Preveiw')").length
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