Find out if the form-data should be validated or not:
The result of x could be:
The formNoValidate property sets or returns whether the form-data should be validated or not, on submission.
This property is only used for buttons with type="submit".
When set to true, this property adds the "formnovalidate" attribute to the "submit" button, and specifies that the form-data should not be validated on submission. This overrides the form's novalidate attribute.
Note: The formnovalidate attribute is new for the <button> element in HTML5.
The formNoValidate property is supported in all major browsers.
Note: The formNoValidate property is not supported in Internet Explorer 9 and earlier versions.
Return the formNoValidate property:
Set the formNoValidate property:
Value | Description |
---|---|
true|false |
Specifies whether the form-data should be validated or not, on
submission
|
Return Value: | A Boolean, returns true if the form-data should not be validated, otherwise it returns false |
---|
Set the formNoValidate property:
HTML reference: HTML <button> formnovalidate attribute