HTML slt;button> formnovalidate property
Using the formnovalidate property will stop validating the form, refer to the following example:
Forms with two submit buttons (for validation or not validation), the first submission button for submitting data with default form validation, and the second submission button for submitting data without form validation:
E-mail: <input type="email" name="userid"><br>
<button type="submit">提交</button><br>
<button type="submit" formnovalidate>不验证提交</button>
</form>
Try it out . . .
Browser support
Internet Explorer 10, Firefox, Opera, Chrome supports formmethod properties.
Note: Formmethod properties are not supported by Safari, Internet Explorer 9, and earlier versions of IE.
Definitions and usages
The formnovalidate property is a boolean property.
If you use this property, the button does not perform the validation process when the form is submitted. The formnovalidate property overrides the form's novalidate property.
This property is used in conjunction with type "submit".
The difference between HTML 4.01 and HTML5
The formnovalidate property is a new property in HTML 5.
The difference between HTML and XHTML
In XHTML, the property does not allow short writing, and the formnovalidate property must be defined as the "submit" formnovalidate .
Grammar
HTML slt;button-and-label