0

Hi

As most people probably know the option for conditional formatting is no longer available in SharePoint Designer 2013. I was looking at some JavaScript and JQuery examples and found this:

<script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js” type=”text/javascript”></script><script>
    $(document).ready(function(){
      $Text = $(“td .ms-vb2:contains(‘Bristol’)”).filter(function() {
      return $(this).text() == “Bristol”;})
      $Text.parent().css(“background-color”, “#00FF66”);
      $Text = $(“td .ms-vb2:contains(‘Thames’)”);
      $Text.parent().css(“background-color”, “#FFFF66”); 
     }); </script>

In this example and the  examples I find, it seem to be checking the entire list for a value and not searching for the value in a particular column. Being very new to JavaScript or JQuery is there a way I can alter this to search on a particular column.

(Visited 526 times, 1 visits today)
Add a Comment