Table of contents
- 1. Summary
- 2. Syntax and values
- 3. See also
Summary
childElementCount returns the number of child elements of the given element.
Syntax and values
var elCount = elementNodeReference.childElementCount;
elCount is the number of elements that are children of the current element. If the element has no children, then elCount is zero.
This attribute is read only.
Mozilla Developer Network