Hi,

I'm working on a custom theme that uses jQuery, and I discovered that there is already an older version of jQuery that is being referenced. I used the Stark theme as my starting point. Here's what I see when I view source:

<script type="text/javascript" src="{drupal-path}/misc/jquery.js?v=1.4.4"></script>
<script type="text/javascript" src="{drupal-path}/misc/jquery.once.js?v=1.2"></script>
<script type="text/javascript" src="{drupal-path}/misc/drupal.js?m1agmq"></script>

I initially thought two jQuery versions were being included, 1.4.4 and 1.2, but I just realized that jQuery once is a jQuery plugin.

I would like to update to the most recent version of jQuery (1.7.2 as of March 22). What is the appropriate way to do this? I've been searching and the best I can find is the jQuery Update module, which "Upgrades the version of jQuery in Drupal Core to a newer version of jQuery." But it only takes updates to jQuery 1.5.2 (again, as of March 22).

Can I just replace misc/jquery.js with jQuery 1.7.2? What about updating the ?v=1.4.4 query string?

Thanks for any tips on how to go about this!

-Josh

Comments

alinouman’s picture

Don't try to update it because there can come issues in drupal 7 and other modules like views so stick with jquery 1.5.2

jbeall’s picture

Ok, fair enough!

I did some more searching and it looks like we're getting closer to having jQuery 1.7 in Drupal:
http://drupal.org/node/1386294