Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82694

Cell background color based on cell content

$
0
0
For a new site I'm writing, I would like to be able to specify the background color of the table cell based on the value within that cell. For example:
value < 6, bgcolor = red
6 < value < 8, bgcolor = green
value > 8, bgcolor = red

Is this possible? The data will be gotten by JSON.

Viewing all articles
Browse latest Browse all 82694

Trending Articles



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