Counting Child Elements using JQuery

by Francis 2012-09-03 17:32:35

To count the number of child in particular tag to use following codes,


<div id="parent">
<div id="child1"></div>
<div id="child2">
<div id="child3"> </div>
<span><span>
</div>
</div>
</div>

$("#parent > div").size()
654
like
1
dislike
0
mail
flag

You must LOGIN to add comments