Python Learning Path 7 front End Learning 4 JQuery Learning

Source: Internet
Author: User

Transformation:

jquery Object [0] = + DOM Object

$ (Dom object) = = jquery Object

1.id

$ ("#id")

2.class

$ (". CN")

3. Get all the A tags in the label

$ (' a ')

4. Get a collection of multiple labels

$ ("a,.cn. #in")

5. Hierarchy

$ ("#in a") all a labels with an ID of n

$ ("#in >a") son level

6. Index

$ ("#i10 A:eq (2)") ID i10 a label with index value 2

And there is: first/: Last

7. Filter Properties

$ (' [Alex] ')

$ ("[Alex=value]")

Shorthand: $ (": Value")

8. Set disabled in the label can be set to non-editable

$ (":d isabled") + can find all disabled labels

9. Small example: multiple selection and inverse selection

Python Learning Path 7 front End Learning 4 JQuery Learning

Related Article

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.