JQ selector Summary

Source: Internet
Author: User
1 $ ("Div") // tag 2 $ (". box ") // Class 3 $ (" # box ") // ID 4 $ (" A [href] [name] ") // multiple attributes 5 $ ("A [name]") // select a 6 $ with name ("A [name = 'aaa']") // select a 7 $ ("A [name ~ = Aaa] ") // select a 8 $ (" A [name | = aaa] ") whose property value contains AAA // select a whose name starts with AAA, it must be the entire 9 $ ("A [name ^ = aaa]") // select A10 $ ("A [name $ = aaa]") Starting with AAA in name. // select A11 $ ("A [name * = aaa]") whose name ends with AAA. // select all A12 $ ("A: active") whose name contains AAA ") // The activated element A13 $ ("A: Focus") // The element A14 with focus $ ("A: hover ") // element A15 $ ("A: Link") // The default element A16 $ ("A: visited ") // The accessed element A17 $ ("A: First-Child") // The first element A18 $ ("A: Lang ") // pseudo classes with Lang 19 $ ("P: first-line") // The first row of P 20 $ ("P: First-letter ") // The initial letter of P 21 $ ("P: befor") // The content of P before 22 $ ("P: After ") // After the content of P is 23 $ ("Ul LI> A") // select A24 $ (". box + ul ") // select adjacent brothers

 

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.