The formnovalidate attribute is identical in behavior to the form element’s novalidate attribute, but is applied to a submit button which, if clicked, overrides the novalidate value (if specified) on the containing form element.
Valid values are “true” or “false”. If “true”, clicking the associated submit button will not trigger any native HTML5 validation behaviors (such as triggering of the required attribute) that may have been specified for the form’s input controls.
<input type="submit" value="Save Draft" formnovalidate="true" />
<button formnovalidate="true">Save Draft</button>
The formnovalidate example:
No comments have been made yet.
Please login to leave a comment. Login now