On my .aspx page, I have several required fields. When someone tries to submit the form without filling in a required field, that particular field is highlighted. Simple.

But what about after the user has entered a value? The box remains highlighted. I tried using some javascript to return the border color of the textbox back to normal, but I have no idea to make it look exactly as it did before it was highlighted. It's just the default border color, which appears to be a very thin light grey line around the text box, but I don't know the javascript bordercolor/borderwidth attributes needed to make it return to normal.

So, first and foremost, how do I get a field un-highlighted once the user inputs a value?