193
rated 0 times
[
200]
[
7]
/ answers: 1 / hits: 33298
/ 10 Years ago, wed, may 14, 2014, 12:00:00
I want to change the background color of the cell based on its text contents using jquery.
Example:
For the second row in the Exceeds td, I want to change the background color to green because it has Exceeds as it's text...
<table>
<tr><td>Jedi Armor1</td><td>Needs</td></tr>
<tr><td>Jedi Armor2</td><td>Exceeds</td></tr>
</table>
More From » jquery