Click to See Complete Forum and Search --> : CSS - how to highlight a row when checked?


nnd
07-25-2006, 12:45 PM
Hi all,

I created a table, where the bg color of the row will change when its rollovered. I also need the rows to get highlighted when the checkbox is checked and not highlighted when unchecked (using CSS only and not JS).
Is it possible?

Thanks in advance.

The Little Guy
07-25-2006, 12:46 PM
i think that requires js

nnd
07-25-2006, 01:27 PM
thanks for the reply.

ray326
07-25-2006, 01:27 PM
That'll take something like an onclick handler in the checkbox.

nnd
07-25-2006, 02:20 PM
--

nnd
07-26-2006, 12:26 PM
any solutions?

matty_y2002
07-26-2006, 12:53 PM
you will have to use a onclick=" " but then link that to a Javascript function i reckon