I am trying to change a text field's border using javascript
field.style.border='2px solid red';
that's working, then I want to restore the default style of browser after 2 or 3 seconds
I have done something like this
function shine(field){
field.focus();
field.style.border='2px solid red';
setTimeout(function(){
field.style.border='initial';
},2000);
}
but the attribute initial is not helping.
Is there any way to do it?
Thanks in advance. :)