I have a number of rows like this:
<tr>
<TD class="Lo">90%</TD>
<TD class="Poor">80%</TD>
<TD class="Lo">89%</TD>
<TD class="Mid">85%</TD>
<TD class="Poor">85%</TD>
<TD class="Mid">85%</TD>
<TD class="Hi">85%</TD>
</tr>
Now I want to access any elements in this row and set the color of that row based on values:
- If the 80% < value <= 85% colours yellow,
- If the 90% < value <= 95% colours red,
- If the 95% < value <= 100% colours green.
How to do this using jQuery?