This article mainly introduces the usage of the hidden selector in jQuery, and analyzes in detail the functions and definitions of the hidden selector in the form of examples and the usage tips for setting invisible matching elements, it has some reference value. If you need it, you can refer to the example in this article to describe the usage of the hidden selector in jQuery. Share it with you for your reference. The specific analysis is as follows:
This selector can match all invisible elements or elements whose type is hidden.
Syntax structure:
The Code is as follows:
$ (": Hidden ")
This selector should also be used with other selectors, such as class selector and element selector. For example:
The Code is as follows:
$ ("P: hidden" ).css ({display: "block", color: "blue "})
The preceding Code sets the hidden p element to visible and the font color to blue.
If it is not used with other selectors, the default state is used with the * selector. For example, $ (": hidden") is equivalent to $ ("*: hidden ").
Instance code:
The Code is as follows:
Foot home