jquery ":visible" code example
Example 1: element is hidden jquery
// Checks CSS content for display:[none|block], ignores visibility:[true|false]
$(element).is(":visible");
// The same works with hidden
$(element).is(":hidden");
Example 2: jquery visible
$(":visible");
//or
$().is(":visible");
Example 3: jquery visible
$(element).is(":visible");
$(element).is(":hidden");
Example 4: get count of class which is visible element
$(".level1:visible").length;