Using Newer Versions Of Jquery In Drupal Frontend


Download a newer version of jQuery from the jQuery website (http://jquery.com/download/). Suppose you downloaded it in "misc" folder of your drupal installation and the file name be "jquery-1.11.0.min.js".

So put this code in your frontend themes "template.php" file.

<?php
function <your theme name>_js_alter(&$javascript) {
  // Swap out jQuery to use an updated version of the library.
  $javascript['misc/jquery.js']['data'] = 'misc/jquery-1.11.0.min.js';
}
?>

Now flush the cache either from admin panel configuration >> performance OR by drush with command drush cc all