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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s