The formnovalidate
attribute on an <input> button of type submit
specifies that no form validation occurs during form submission.
When enabled, all input elements will not be validated when the form is submitted.
A formnovalidate
attribute on a submit button.
This button will not validate the form input.
<form action="/tutorial/action.html">
<input name="email" placeholder="Enter your email" required><br/>
<input type="submit" value="Submit with validation"/>
<input type="submit" value="Submit without validation"
formnovalidate/>
</form>
The formnovalidate
attribute overrides the form's validation setting.
With this attribute enabled, none of the input elements will be validated, even when specified.
This attribute can only be used on <input> types submit
or image
.
<input type="submit | image" formnovalidate>
Here is when formnovalidate
support started for each browser:
Chrome
|
1.0 | Dec 2008 |
Firefox
|
1.0 | Nov 2004 |
IE/Edge
|
10.0 | Sep 2012 |
Opera
|
10.6 | Oct 2010 |
Safari
|
5.1 | Oct 2011 |