Latest web development tutorials

jQuery: visible selector

jQuery selector jQuery selector

Examples

Select all visible <p> element:

$("p:visible")

try it"

Definition and Usage

: Visible selector to select each element currently visible.

In addition to the elements of the following situations, that is visible elements:

  • Set to display: none
  • Form elements with type = "hidden" in the
  • width and height set to 0
  • Hidden parent element (which will hide sub-elements)

grammar

$(":visible")


jQuery selector jQuery selector