kraftwer1
kraftwer1

Reputation: 5731

Multiple jQuery versions: Apply plugin to only one of them

I'm in the situation of having multiple versions of jQuery on a site. Now, there's a jQuery plugin I'd like to apply to jQuery_1_0_0, instead of jQuery.

How can I do that without touching the plugins source code?

Upvotes: 0

Views: 26

Answers (1)

Kevin B
Kevin B

Reputation: 95027

Include the plugin directly after the version of jquery you want it to affect.

<script src="jquery.1.0.0.js"></script>
<script src="jquery.plugin.req.1.0.0.js"></script>

assuming you're using $.noConflict rather than modifying jquery.1.0.0.js directly.

Upvotes: 1

Related Questions