Tag Elemen JS Count
var element = document.getElementById("theElementId");
var numberOfChildren = element.getElementsByTagName('*').length
Borma
var element = document.getElementById("theElementId");
var numberOfChildren = element.getElementsByTagName('*').length