Ways to apply multiple different versions of jquery on the same page without conflicting methods

Source: Internet
Author: User
Tags jquery library

Since the advent of jquery, there has been a growing number of versions, and the new version of the jquery website is constantly being updated and released, but we have already used previous versions of jquery, such as 1.3.X, 1.4.X, 1.5.X, 1.6.2, and so on.

Before the modification of the foreground page, I encountered such problems, I use the latest jquery version, before the program with the old jquery library, because this is not a redo, so we have a long time two versions have no way to co-exist, finally can only two select one, modify the written JS, Today on the Internet to see a different jquery version of the coexistence of non-conflicting methods, share.

In fact, using the jquery.noconflict () feature, we can not only make jquery coexist with other JS libraries, such as prototype. It can also coexist with different versions of jquery itself without conflict.

Cases:

 <! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" > 

Method of applying multiple different versions of jquery on the same page without conflicting methods

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.