SharePoint 2013 – Where to add Javascript\Jquery in your SharePoint site

Summary : SharePoint 2013 – Where to add Javascript\Jquery in your SharePoint site,How to add Jquery and JavaScript in SharePoint 2013 site

The new webpart “Script Editor” lets you add Javascript\Jquery in your SharePoint site. You can insert HTML snippets or scripts.



Quick Steps –
1. Create a webpart page (If you cannot find the Webpart page template take a look at my post @ SharePoint 2013 – How to create a WebPart Page?)


2. Click on Webpart zone “Add a WebPart” and then in Ribbon select “Script Editor”.

3. Once the webPart is added click the “Edit Snippet” and add JavaScript in it. For this example I added JavaScript that would display current date.







This is a special webpart added to insert HTML\JavaScript\Jquery. You can still add scripts in content query webpart as you did earlier.


Related Posts

Disclaimer: The contents of this site are provided “AS IS”. Information and views expressed including URL(s) and other Internet website references, may change without notice. You bear the risk of using it. SharePoint, MOSS, SharePoint 2010, SharePoint 2013 and Microsoft are trademarks of the Microsoft Corporation.Learning SharePoint only provides Tips,Tricks and Tutorials for using Microsoft SharePoint, Microsoft Office and related Softwares.
Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.