Waffles32
01-18-2012, 08:00 PM
Hi,
I have tried to figure this out but haven't had any luck..
I need a td (id="td1") to have a bgcolor of black when a variable is equal to 1.
So:
var x = equation that is equal to 1;
if (x == 1) {
Code to make td have a black bg;
} else { Don't change anything.}
I am stuck because all the resources that I could find are talking about td:hover CSS.
- Waffles
I have tried to figure this out but haven't had any luck..
I need a td (id="td1") to have a bgcolor of black when a variable is equal to 1.
So:
var x = equation that is equal to 1;
if (x == 1) {
Code to make td have a black bg;
} else { Don't change anything.}
I am stuck because all the resources that I could find are talking about td:hover CSS.
- Waffles