HTML <button> formnovalidate Attribute
Example
A form with two submit buttons (one for validation and one without validation). The first submit button submits data with the default form validation, while the second submit button submits data without form validation:
<form action="demo_form.html" method="get">
E-mail: <input type="email" name="userid"><br>
<button type="submit">Submit</button><br>
<button type="submit" formnovalidate>Submit without Validation</button>
</form>
Browser Support
Internet Explorer 10, Firefox, Opera, Chrome support the formmethod attribute.
Note: Safari, Internet Explorer 9 and earlier versions do not support the formmethod attribute.
Definition and Usage
The formnovalidate attribute is a boolean attribute.
When present, it specifies that the button should not perform validation when the form is submitted. The formnovalidate attribute overrides the novalidate attribute of the form.
This attribute is used with type="submit".
Differences Between HTML 4.01 and HTML5
The formnovalidate attribute is new in HTML5.
Differences Between HTML and XHTML
In XHTML, attribute minimization is forbidden, so the formnovalidate attribute must be defined as <button type="submit" formnovalidate="formnovalidate">.