how to count length of child of section in javascript code example Example: get children length jquery var count = $("#selected ul").children().length;