Row color based on cell content
Posted: Thu Nov 05, 2009 1:52 pm
I've got a large table with each record being an invoice. It is possible for 3 invoices to have the same request number. I would like for all the invoices with the same request number to have the same background color. So,
This would go on listing more invoices and requests. I've never tempted javascript, so be nice when explaining it to a new guy. I'm assuming javascript would be the best way to accomplish this. This web site has got the right idea, but I couldn't figure out how to change the example code to work with my script.
http://old.nabble.com/Change-row-colors ... 27240.html
Code: Select all
request_number | invoice_date | invoice_amount
2 2009 $10 // background of this row would be green
2 2009 $20 // background of this row would also be green
3 2009 $60 // background of this row would be blue
3 2009 $55 // background of this row would be blue
3 2009 $15 // background of this row would be blue
http://old.nabble.com/Change-row-colors ... 27240.html