color change on focus on hte textbox

Hi all,

I have a struts form on which there are number of text boxes present.

When the user enters a wrong value in any of the text boxes and when the validation fails then the error message is displayed on the page.

Along with that I have to bring he focus to the text box where the problem is present and I have to change the color of the text box to yellow.

To bring the focus to the text box is ok. But how do I change the color of the text box?

Thanks in advance.

[508 byte] By [JHyenaa] at [2007-11-27 11:38:06]
# 1

after set focus, try this:

document.getElementById("textboxname").style.background-color: yellow;

skp71a at 2007-7-29 17:18:14 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...