I need to disable default validation of input type='email' like if I don't write '@' or 'gmail.com' it show me default validation pop up I need to disable it and create my own pop up for show it using html of JS
2 Answers
use "novalidate"
"input type="email" novalidate/"
make it type="text", Why you using the type="email", if you don't need its as "email".
3 Comments
JCollier
There is at least one reason to use
type="email" even if you don't want default validation: and that reason is browser autofills.JCollier
The
novalidate attribute belongs in the form element. See developer.mozilla.org/en-US/docs/Web/HTML/Element/…user151496
it is a very good and standard practice to include type="email" to let the browsers on various devices know that the input method should be adjusted to the email, plus it's just semantically correct
type="text". On the other hand, I do heavily advise you to NOT do your own custom validation for emails.