Hot answers tagged

1

The problem you are facing is because SharePoint loads those groups dynamically via JavaScript, so if you are adding classes to elements, those elements don't initially exist when the page has officially finished loading, so executing on document.ready is "too soon". I have a snippet of code I use when I need to execute something after a grouped view has ...


1

You can try the below code for conditional color formatting code in SharePoint : $(document).ready(function(){ $Text = $(“td .ms-vb2:contains(‘Approved’)”).filter(function() { return $(this).text() == “Approved”;}) $Text.parent().css(“background-color”, “#00FF66”); $Text = $(“td .ms-vb2:contains(‘Decline’)”); $Text.parent().css(“background-color”, “#...


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