userimage

how to get number of child div in jquery

i have a below html code:


<div id="notco">

    <div>kjsdhfkjh</div>

    <div>ksdgfiuwrtbishgvks</div>

</div>

From above code i want to count the number of child elements present inside div id "notco".

userimage

Use below code to get the number of child elements:


$('#notco').children().size()

Answer is