showing results for - "count child elements javascript"
Lukas
11 Feb 2020
1let temp = document.getElementById('element').parentNode;
2console.log(temp.children.length);
3// or the following
4console.log(temp.childElementCount);
5