JQuery 1.2.x Upgrade 1.3.x Considerations _jquery

Source: Internet
Author: User
1.Selector
Take the input tag name as go value
Copy Code code as follows:

$ ("input[@name =go]"). Val (); It was supposed to be available on JQuery 1.2.x.
$ ("Input[name=tag]"). Val (); But after 1.3.x, take the @ off, or it will be wrong.

Others have to be removed, such as [@selected] [@checked]
P.s
[attribute]: having the specified attributes
[Attribute=value]: The value of the metal
[Attribute!=value]: The value of the metal does not contain
[Attribute^=value]: The name of the word string is value
[Attribute$=value]: The character end word string value
[Attribute*=value]: The metal value includes value
Remark: [Attribute=value] and [attribute*=value] look alike, but there are still different
One is exactly the same, one is included, there are people who have been written to take many, and should be incorrect
Remark:
I don't know why [name= ' test '], if all spans are OK
But if you have a <a name=test> or input, you'll only find this one.
Other than that
$ ("Xmlparentnode xmlchildnode[name= ' xx ')"). XX <== This looks like it's going to look wrong.
$ ("Xmlparentnode"). Find ("Xmlchildnode[name= ' xx ')"). XX will be right.
References:
3 Quick Steps for a painless Upgrade to jQuery 1.3

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.