Input Submit formNoValidate Attribute
Definition and Usage
formNoValidate
This attribute determines whether the form data should be validated at submission.
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 at 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-Attribut
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).
|
Technische Details
Rückgabewert: | Boolscher Wert, wird zurückgegeben, wenn das Validieren der Formulardaten nicht erforderlich ist true ; andernfalls wird zurückgegeben false . |
---|
Browser-Unterstützung
Die in der Tabelle angegebenen Zahlen beziehen sich auf die erste Version des Browsers, die diese Eigenschaft vollständig unterstützt.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Unterstützt | 10.0 | Unterstützt | Nicht unterstützt | Unterstützt |