Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing color of a table row based on value of a field

Status
Not open for further replies.

sweetleaf

Programmer
Jan 16, 2001
439
0
0
CA
Hi there,

I have an html table with the following columns:id, status, description.
If the status of a record is "Open" I'd like the row(or a cell) of this record to be yellow.
If status is "Pending" I'd like the row(or a cell) to be pink.
Otherwise just plain white.

Would anyone know how to accomplish this?

Regards,
Mark






 
Hi,

I would suggest to do it while you are creating the page.
Code:
<td bgcolor=&quot;#FFFF00&quot;>
for yellow!!

Regards,
Luís Silva
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top