I am displaying mySQL in an html table.
I would like to change the TD background color of $qty to red IF $qty >= $max or $qty =< $min
.
Is there a simple a way to do this with jQuery or PHP?
I simplified my table and PHP for my example:
<table id="tablesorter-demo">
<tr><td>'.$min.'</td><td>'.$max.'</td><td>'.$qty.'</td></tr>
</table>
I know you have your answer, but it would be better to just write a custom tablesorter widget that highlights the bad quantity table cells. Here is a demo and the code:
http://jsfiddle.net/7vUFS/3/