Latest web development tutorials
 

jQuery :hidden Selector

< jQuery Selectors

Example

Show hidden elements:

$(":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