Find out if the form-data should be validated or not:
The result of x will be:
The noValidate property sets or returns whether the form-data should be validated or not, on submission.
By default, form-data inside <form> elements will be validated on submission.
When set to true, this property adds the "novalidate" attribute to the <form> element, and specifies that the form-data should not be validated on submission.
Note: The novalidate attribute is new for the <form> element in HTML5.
The noValidate property is supported in all major browsers.
Note: The noValidate property is not supported in Internet Explorer 9 and earlier versions.
Note: If you set this property in Safari, it will not have any effect. The novalidate attribute is not supported in Safari.
Return the noValidate property:
Set the noValidate 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 noValidate property:
HTML reference: HTML <form> novalidate attribute