I originally posted this question on Stack Overflow but didn't find an official cross-browser way to close the error messages:
http://stackoverflow.com/questions/7353 ... or-message
@Garrett Vlieger discovered a hack that works in Opera 11.51 Build 1087 and Firefox 6.0.2:
- Code: Select all
inputElement.blur();
inputElement.focus();
However, it doesn't work in Chrome 15.0.874.5 dev-m (or older).
When the user starts typing again, I want to close the form validation error message.