I have an HTML table with a lot of numbers.
Is it possible to have a table cell change background color if the value inside that cell (or column) equals or is less than
You could use code like this:
$(".colorMe td").each(function() { var val = parseInt(this.innerHTML, 10); if (val < 3000) { this.style.backgroundColor = "#F00000"; } });
See a working example here: http://jsfiddle.net/jfriend00/GAwrB/.