I\'m doing form validation. when the form input is incorrect i add a red border to the textbox:
document.getElementById(\"fName\").style.borderColor=\"#FF000
You may try
document.getElementById('name').style.borderColor='#e52213'; document.getElementById('name').style.border='solid';