highlight row on focus
Posted on 2002-07-02
I have a table that is 6 columns wide and has several rows. In columns 1, 2, and 5 are text boxes for the user to enter data. Every other row, even numbered rows, is shaded with a background color of “#D2D8F9”. What I need to do is: when a user puts focus to one of the text boxes, either by clicking or tabbing, I need to turn the background color of that text box to “Yellow”, and highlight the row, turn the background color of the row, to “#FFCC66”. When the user moves to a new row, the background color of the previous row needs to be reset to its original color, either “White” for odd numbered rows, or “#D2D8F9” for even numbered rows. The main problem I am having is the fact that the table rows are using alternating colors.
Thanks in advance for the help.