Reputation: 118
What is the best way to use Twitter Bootstrap along side an older version of jQuery?
I have a drupal 6 site and a Bootstrap based responsive theme that works quite well, but they each need their own version of Jquery. I have looked at implementing things using noconflict
but I can't find a straight forward example of that in this kind of scenario - which made me wonder if that is the correct approach at all.
Any insight would be greatly appreciated. Thanks!
Upvotes: 1
Views: 1194
Reputation: 95027
Include jquery 1.9.1, include bootstrap, then include the following:
<script>
var $_191 = $.noConflict(true);
</script>
Or, even better, update drupal to include jQuery 1.9.1 + jQuery migrate
Edit: updating from 1.3.2 to 1.9.1 will take more than just adding jQuery migrate most likely, i wouldn't suggest attempting it unless you had a little bit of time to work through the bugs.
Upvotes: 1