Hot answers tagged

1

Try putting following script in Script Editor webpart on the page. Hope this might help you out. <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $(".ms-list-itemLink > a").each(function(){ ...


1

You can do this even without using $(document).ready(function(). Attach JS in your webpart. <script src="/sites/DevNum/testjd/SiteReformeTest/js/palette.js"></script> You just need to remove $(document).ready(function(){ from your code. Write only below function in your JS file. function getItemsToBeUpdated() { ... ...


1

You should try below code without $(document).ready(function(){ $( "#palettebutton" ).click(function() { ---------- Your code will be here ---------- alert( "Handler for .click() called." ); });



Only top voted, non community-wiki answers of a minimum length are eligible