Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JavaScript count list items


var myUL = document.getElementById("myUL");
var list = myUL.children.tags("LI");
alert(list.length);

Source by www.sitepoint.com #
 
PREVIOUS NEXT
Tagged: #JavaScript #count #list #items
ADD COMMENT
Topic
Name
9+6 =