count elements in element jquery code example
Example 1: get children length jquery
var count = $("#selected ul").children().length;
Example 2: jquery count elements
var count_elements = $('.class').length;
var count = $("#selected ul").children().length;
var count_elements = $('.class').length;