How to use Jquery in Sharepoint 2010
To use jQuery with SharePoint, there are two things that need to be done: The JavaScript library should first be deployed to a location which can be accessed by SharePoint pages, and the library should be loaded by the SharePoint pages. The recommended location for deployment of the JavaScript library is C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS folder . Doing so will allow the file to be loaded via the URL http://pravaham123/_layouts/jquery.js , because the _layouts part of the URL always points to the LAYOUTS folder. There are a couple of ways you can do this. 1) Using the Content Editor Web Part to load your jQuery Library The simplest way to load the library is by adding a Content Editor Web Part to the page and adding the following script to its Source Editor in the tool pane: < script type ="text/javascript" src ="http://pravaham123/_layouts/jquery-1.5.2.min.js" > script ...