How to deal with different jQuery versions?

For example
If you have a plugin on a site that uses jQuery 1.5.x and want to create a new plugin by implementing a script which uses an older version of jQuery, for example 1.3.x or 1.4.x.

I know it probably depends on jQuery functions that are called, but if you really had to use both 1.5 and some older version of jQuery.. how would you deal with this kind of situation? Is it even possible to use 2 different versions of jQuery at the same time without drawbacks?

Thanks.

Answer

You could use jQuery.noConflict in your new plugin.

Attribution
Source : Link , Question Author : tkit , Answer Author : Wietse Venema

Leave a Comment