get the number of child elements of div jquery code example Example: get children length jquery var count = $("#selected ul").children().length;