jQuery :hidden Selector (original) (raw)
Last Updated : 11 Jul, 2025
The jQuery :hidden selector selects hidden elements to work upon.
Syntax:
$(":hidden")
- Set to display:none
- Form elements with type="hidden"
- Width and height set to 0
- A hidden parent element (this also hides child elements)
Example 1:
HTML `
GeeksforGeeks
Hidden attribute example
The above line will show up gradually.
`
Output:

Example 2:
HTML `
Complex Animation Using Hidden Attribute