Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Change background color of cell (that says cell not row) in SharePoint 2013 list based on content.

$
0
0

I know using jQuery I can

 $(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('Approved under revision')");
        $Text.parent().css("background-color", "#FFFF66");

Not column either, each cell.

To change a whole row, but how do I change just one cell based on its content, with different colors per each cell?


Gary Newman MCSE, MCT, CCNA, MCSD, MCPD, MCDBA, MCAD, MCSA, MCTS Developer and Administrator On SharePoint 2013 SharePoint Practice Manager for AmeriTeach Denver, CO.



Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>