Powerful selector in basic jQuery tutorials (filter selector-visibility filter selector)

Source: Internet
Author: User

In the last jquery tutorial, the powerful selector (filter selector-content filter selector), we learned about jquery content filter selector, today, let's take a look at another powerful jquery filter selector-visibility filter selector.

Selector Description Return Example
: Hidden Select all invisible elements Set Element $ (": Hidden") selects all invisible elements, including: <input type = "hidden">, <Div style = "display: none "> and <Div style =" visibility: hidden; ">,< br/>. If you only want to select an invisible element of input, you can use $ ("input: hidden ")
: Visible Select all visible elements Set Element $ ("Div: visible") select all visible DIV elements

Note:Before jquery1.3.2 <br
/> The element is not invisible, but in Version 1.3.2 and later versions, the <br/> element is also regarded as an invisible element.

Click here to watch
Jquery tutorial basics-powerful selector-filter selector-visibility filter selector Online Demo
If you want to know what the code is, right-click it and choose "View Source Code ".

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.