SharePoint Online: How to add JavaScript and jQuery in SharePoint site page
As we know, the use of scripts and especially adding any scripts to a SharePoint page will make a lot of tasks and easy and understandable to use and process.
For example: if we have a list of multiple PDP pages it will show very odd together on the same page, we need to always scroll down all pages to select particular PDP.
With the help of a script, we can see in categories view and can access very easily. Just the same will be TAB code for SharePoint, search more on a Google page.
http://www.markrackley.net/2015/08/16/sharepoint-tabbed-web-partshillbillytabs-3-0/
For adding any script on SharePoint online page, follow the below steps:
- Log in to the SharePoint site or log in to the subsite with user id and password.
- To add any of script on a page or any list, PDP we need to edit the page.
- Click on the page tab and edit this page or click Setting option and select Edit page.
- Once clicked on Edit page, it will start edit wizard and here we need to add a web part for a script where we can add our code.
- Now add the web part for a script. To do this go to categories of Web part and select media and content, it will take script web part from the right side of the screen. See below
- Now click Add button to add the script edit web part. Wait for some time till that is adding over there.
- Now we can see script editor has been added over here. We will get an option called EDIT SNIPPEST. Click this and add your code.
- Now result will be like below: