Input Submit formNoValidate Attribute
Definition and Usage
formNoValidate
It reflects whether the form data should be validated when the form is submitted.
This attribute reflects the formnovalidate attribute.
When set to true, this attribute adds the "formnovalidate" attribute to the submit button and specifies that the form data should not be verified upon submission. This will override the form's novalidate attribute.
Note:The formnovalidate attribute is a new attribute of the <input> element with type="submit" in HTML5.
See also:
HTML Reference Manual:HTML <input> formnovalidate Attribute
Example
Example 1
Determine whether the form data should be verified:
var x = document.getElementById("mySubmit").formNoValidate;
Example 2
Set the formNoValidate attribute:
document.getElementById("mySubmit").formNoValidate = false;
Syntax
Return the formNoValidate attribute:
submitObject.formNoValidate
Set the formNoValidate attribute:
submitObject.formNoValidate = true|false
Attribute value
Value | Description |
---|---|
true|false |
Whether the form data should be verified (at submission).
|
Technical Details
Return Value: | Boolean value, returned if the form data should not be validated true ; otherwise return false . |
---|
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 |
Supported | 10.0 | Supported | Not Supported | Supported |