-1

The main problem is that I have 2 jQuery versions working in my website: 1.2.6 and 2.0.3

Most of my scripts are using 1.2.6 but only 1 script is using 2.0.3

How can I stop this conflict between the both jQuery versions?

Kara
  • 6,115
  • 16
  • 50
  • 57
  • Welcome to StackOverflow. This is a pretty well covered question. I wasn't aware of what @Stijn mentioned, but yes, this is a duplicate of that question. My answer goes more generally into `noConflict` for you. – digitalextremist Jan 09 '14 at 18:24

1 Answers1

0

Use jQuery.noConflict: http://api.jquery.com/jquery.noconflict/

That allows you to intentionally use multiple libraries which override $ gracefully.

Here are some related questions on the topic of .noConflict() for you:

Usually this is used for other libraries vs. multiple jQuery versions, but the same applies to multiple jQuery versions.

Community
  • 1
  • 1
digitalextremist
  • 5,952
  • 3
  • 43
  • 62