Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

count number of divs inside a div javascript

var container_div = document.getElementById('id_of_container_div');
var count = container_div.getElementsByTagName('div').length;

 
PREVIOUS NEXT
Tagged: #count #number #divs #div #javascript
ADD COMMENT
Topic
Name
9+4 =