Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js count element tags

var element = document.getElementById("theElementId");
var numberOfChildren = element.getElementsByTagName('*').length
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #count #element #tags
ADD COMMENT
Topic
Name
8+6 =