HTML <button> formnovalidate Attribute
Definition and Usage
formnovalidate
attribute is a boolean attribute.
If this attribute is set, it specifies that form data should not be validated when submitted. This attribute overrides the form's The novalidate attribute.
formnovalidate
. attribute is used only for
button.
Example
A form with two submit buttons. The first submit button uses default validation to submit form data, and the second submit button submits form data without validation:
<form action="/action_page.php" method="get"> <label for="email">Please enter your email address:</label> <input type="email" id="email" name="email"><br><br> <button type="submit">Submit</button> <button type="submit" formnovalidate>Submit without validation</button> </form>
Syntax
<button type="submit" formnovalidate>
Browser Support
The numbers in the table indicate the first browser version that fully supports this attribute.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
6.0 | 11.0 | 4.0 | Support | Support |
Note:formnovalidate
Attributes are new attributes in HTML 5.