There are 2 jQuery selectors that can help you determine whether an HTML element is visible or not.

First, you can use the selector :visible to check if an element is visible on the web page. It’s useful when you’re interested if some element shows up in the browser and isn’t invisible because of the CSS property display set to none.

$(element).is(":visible");

To check if an element is hidden, you take a similar approach.

$(element).is(":hidden");

To select all the HTML elements that are visible, you use a different selector.

$('element:visible')

And a similar one to get all the hidden HTML element with jQuery.

$('element:hidden')