These are the steps required to enable and use jQuery in SharePoint 2010.
- Download the latest jQuery from http://jquery.com/download/ (version 1.9.1)
- 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 Library
- 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
- 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.