Tutorials References Exercises Videos Menu
Create Website Get Certified Upgrade

jQuery :hidden Selector

❮ jQuery Selectors

Example

Show hidden <p> elements:

$("p:hidden").show();
Try it Yourself »

Definition and Usage

The :hidden selector selects hidden elements.

Hidden elements are elements that are:

  • Set to display:none
  • Form elements with type="hidden"
  • Width and height set to 0
  • A hidden parent element (this also hides child elements)

Note: This selector will not work on elements with visibility:hidden.


Syntax

$(":hidden")

❮ jQuery Selectors