Enable jQuery in SharePoint 2010

These are the steps required to enable and use jQuery in SharePoint 2010.

  1. Download the latest jQuery from http://jquery.com/download/ (version 1.9.1)
  2. In the root site of your web application. Create a “Scripts” folder in “Style Library” using SharePoint designer  and upload the jQuery files(jQuery-1.9.1.js, jQuery-1.9.1.min.js) to the library.

Contents of Scripts folder in the Style LibraryContents of Scripts folder in the Style Library

  1. Edit v4.master page in advanced mode and add the script reference in the <head> tag. V4.master is the default master page for SharePoint 2010. http://../../../../StyleLibrary/Scripts/jquery-1.9.1.js
  2. Verify it is added to your site and works via Firebug/ IE – F12. in the console type $(“#MSO_ContentTable”).text(“Enabled jQuery”);

We can now see the text in the web page.


Discover more from QubitSage Chronicles

Subscribe to get the latest posts sent to your email.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.