Select Visible Elements $(":visible")

$(":visible")

e.g. $("div:visible")

$(":visible") selects visiable elements.

Elements that are not in a document are considered to be hidden. Elements with display:hidden or with visibility:hidden are considered to be visiable.

For example, $("div:visiable") will find <div> elements that are visiable.

<div></div>
    
<div style="display:hidden"></div>
    
<div style="visibility:hidden"></div>

<div style="display:none"></div>
jQuery selector filter $(":visible")