Embed presentation
Downloaded 23 times
















![jQuery Basics<div id=“myID” attribute=“myAttribute” class=“myClass” ><b>Hello World</b></div>//Retrieve the element by attribute:$(“div[attribute=‘myAttribute’]”);](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fsptechcon-150826191628-lva1-app6892%2f75%2fSPTechCon-Boston-2015-Utilizing-jQuery-in-SharePoint-17-2048.jpg&f=jpg&w=240)








![Chaining• //find the input element that has the “title” attribute equal to “Name”• //then find it’s parent cell’s previous cell. Then find the “h3” element and replacethe HTML• $("input[title='Name']").closest("td").prev("td").find("h3").html("File Name <fontcolor='red'>*</font>");• //In English: Find the label for the field “Name” and change it to “File Name” andadd a red astrisk• //find the input element that has the “title” attribute equal to “City”• //then hide the entire row that contains the input• $(“input[title=‘City’]”).closest(“tr”).hide();• //In English: Hide the SharePoint Form Field and label for the field with theDisplay• //name “City”](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fsptechcon-150826191628-lva1-app6892%2f75%2fSPTechCon-Boston-2015-Utilizing-jQuery-in-SharePoint-26-2048.jpg&f=jpg&w=240)









This document provides an overview of using jQuery in SharePoint. It discusses what jQuery is, why it is useful for SharePoint development, and how to deploy and develop with jQuery in SharePoint. It provides examples of common jQuery methods and best practices. It also demonstrates using the jQuery UI library to add tabs to a page.
















![jQuery Basics<div id=“myID” attribute=“myAttribute” class=“myClass” ><b>Hello World</b></div>//Retrieve the element by attribute:$(“div[attribute=‘myAttribute’]”);](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fsptechcon-150826191628-lva1-app6892%2f75%2fSPTechCon-Boston-2015-Utilizing-jQuery-in-SharePoint-17-2048.jpg&f=jpg&w=240)








![Chaining• //find the input element that has the “title” attribute equal to “Name”• //then find it’s parent cell’s previous cell. Then find the “h3” element and replacethe HTML• $("input[title='Name']").closest("td").prev("td").find("h3").html("File Name <fontcolor='red'>*</font>");• //In English: Find the label for the field “Name” and change it to “File Name” andadd a red astrisk• //find the input element that has the “title” attribute equal to “City”• //then hide the entire row that contains the input• $(“input[title=‘City’]”).closest(“tr”).hide();• //In English: Hide the SharePoint Form Field and label for the field with theDisplay• //name “City”](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fsptechcon-150826191628-lva1-app6892%2f75%2fSPTechCon-Boston-2015-Utilizing-jQuery-in-SharePoint-26-2048.jpg&f=jpg&w=240)







