How to programmatically close an HTML5 form validation error message?
After a form validation error message pops up, how do I programmatically close or hide it?
I’m using Opera 11.51.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When the input field is invalid in HTML5, it sets an “invalid” attribute on the element. To hide it, I believe you can capture this event and then return
falseto set it back to valid: