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.
It’s better to use CSR via JSLink to change the colors instead of doing DOM manipulation like that. This link has more information on that. Doing it with CSR allows you to hook into the OOTB way of rendering the columns instead of trying to override it after it’s rendered. If a future patch were to alter the rendering, your CSR would still be viable when the DOM manipulation method would require re-work.