Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

jQuery - count elements with .length

0 votes
10 views
added Feb 13 in jQuery by lcjr Sergeant (2,320 points)
// check how many paragraph
var count = $("#article0 .news-body p").length;
alert(count);

 

Please log in or register to response this reference.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...