Is it possible using jQuery to count the number of div elements?
I have this code:
<div id = "center">
<div class ="name">text text</div>
<div class ="name">text text text ... </div>
<div class ="name">text ...</div>
</div>
And get number: 3
$("#center div").length
will give you the count.
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