selector visible jquery code example
Example 1: jquery visible
$(":visible");
//or
$().is(":visible");
Example 2: get count of class which is visible element
$(".level1:visible").length;
$(":visible");
//or
$().is(":visible");
$(".level1:visible").length;