I'm doing form validation. when the form input is incorrect i add a red border to the textbox:
document.getElementById("fName").style.borderColor="#FF0000"
this then gives me a 2px red border. what i want to do is if the user putas in a correct value to go back to the original border...
can someone tell me how i change the border size and colour in javascript