Hi All,
I'm using RequiredFieldValidator to change textboxes' background color when validating, it works ok using the following function, my problem is when the user enters sometext in textbox and then jumps to another field the ErrorMessage disappears but textbox background color remains in red, so that could confuse the user and make it think that there is still an error. What I would like to do is as soon as the ErrorMessage disappears bring back the original textbox background color. Any help?, thanks in advance.
<script type="text/javascript"> function WebForm_OnSubmit() { if (typeof (ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) { for (var i in Page_Validators) { try { var control = document.getElementById(Page_Validators[i].controltovalidate); if (!Page_Validator ...

Go to the complete details ...