[Drupal] How to update jQuery versions in your Drupal site?

| | 1 min read

In Drupal I have faced a problem while using . Some jQuery functions are available only in some versions. For example thejQuery pluginsre is jQuery function on It is added in the version 1.7 of jQuery only. So while adding this function to my site I have faced the problem with the plugin because the version of jQuery available in my site was 1.5.

So I ran into a problem of updating the jquery plugins which I have in my site. So how to update jQuery versions in your Drupal site? I have found out a module in drupal which do the updating process of jquery plugins. jquery_update is the module which does the operation of updating the plugin versions.

  • Add the module jquery_update inside the modules list.
  • Install the module.
  • Go to configuration.
  • Inside configuration there will be an option of jquery plugin, there we can change the version of jquery plugins.

As the version changes, only some functionality changes. It will be hectic to change every single file as a seperate update. So I hope this module will be useful to change the versions of jquery which we use in our site and it may be time consumable too.