Multiple Jquery VersionMultiple Jquery Version
2016 17 Feb

Multiple Jquery Version

Many times you need to work with more than one jquery version, especially if you are working with drupal6. Most of the funky jquery plugins doesn't work with jqeury 1.4 and below. And you can't upgrade drupal jquery to some higher version using best practices. On the other hand using hacks (changing core files) can cause problems with Drupal bootstrap, core modules, etc.

Best way to combat this situation is to use jquery noConflict() function. Add following lines to page.tpl.php above 'php print $scripts'  


<script type="text/javascript" src=""></script> (replace this with the version you want to use)
<script type="text/javascript">
var $jq = jQuery.noConflict();

Then replace the $ with $jq inside the jquery files where you want to use above jquery version or simply put the content of those jquery files inside the following tags



And that's it, in this way you can use more than one jquery version within a single drupal installation.


    Latest Blogs

    Healthcare mobile app development

    How Healthcare Mobile Apps is Booming the Healthcare Sector

    No one can deny that mobile apps have revolutionized all sectors, whether eCommerce, education, or mobile healthcare apps. There is hardly any sector untouched by the blessings of mobile apps.

    Read More

    Mobile UX design

    Top Do's & Dont's for a Perfect Mobile User Experience Design

    In any situation, the first impression is considered the last impression. The same is the case in the world of mobile applications.

    Read More

    Mobile app development trends

    15 Effective Mobile App Development Trends That Will Boost

    The mobile app development industry is continuously evolving with great speed. There is indeed tough competition in this industry.

    Read More

    Why it is Best to Use ReactJS for Web Development

    Why it is Best to Use ReactJS for Web Development

    Front-end and frameworks are inevitable and essential parts of web development. As the technologies improve day by day, many new frameworks and libraries are coming to get better results.

    Read More