So how would you use jQuery in Sharepoint? You can follow this easy steps and you will be ready to go in minutes.
1. Download jQuery
Download the latest version of jQuery here.
2. Save It in An Accessible Location in Sharepoint
Using Sharepoint Designer, I added a folder called “Scripts” inside the “Style Library” of the root level of the site. I then added the latest jQuery File into that folder.
3. Place a Reference on that jQuery from Your Code
The best place for this will be your master page so that it can be used anywhere in your site, so open the master page (by default SharePoint 2010 uses
You place that inside the
Save that master page and you are ready to go.
4. Test If It's Working
$("#MSO_ContentTable").text("Welcome to Sharepoint jQuery")
You should get a result something like this: