Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

count all items inside 2nd ul using jquery

        let count = $("ul li ul").children().length;
        alert("Total Length of li in 2nd ul is" + count);
 
PREVIOUS NEXT
Tagged: #count #items #ul #jquery
ADD COMMENT
Topic
Name
2+1 =