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

jQuery - count elements with .length

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


Please log in or register to response this reference. - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.