Our drupal site runs with jQuery version 1.2.1 which we have not upgraded.
The problem is this:
We need to add a new plugin named jQuery Tokeninput, but it’s working only in latest jQuery versions. We tried adding the latest jQuery version with old version, but it produces weird results.
My question is, how to include the latest jQuery file without affecting the old jQuery plugins?
Method #1: (recommended)
You could do something like this:
And this way when you want something made with the new version of jquery instead of the
$use$jq.Method #2: (might break things on your site – not recommended)
In your
template.phpfile:Be sure to only do this on the frontend of your site. It can mess up admin toolbars if they are dependent on Drupal’s version of jQuery.