Hi,
I am going through the article Client-side form validation on MDN and in the section Validating forms using JavaScript there is a detailed example about handing the form validation using JavaScript. All of the cases in the showError() function works but when I fill the input using auto-complete I can still bypass showError() function.
I used a@b using browser’s auto-complete and it didn’t show any error, submit also didn’t prevent it from submitting as it is too short and does not satisfy the minlength="8"
attribute. Can anyone explain why is this happening?
Thank you.