Input Submit formNoValidate Attribute
Definition and Usage
formNoValidate
Property setting or returning whether the form data should be validated when 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 validated when submitted. 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 egenskap
Instance
Example 1
Determine whether the form data should be validated:
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 (when submitted).
|
Tekniska detaljer
Returvärde: | Boolsk värde, om formulardata inte bör valideras, returneras true Annars returnera false . |
---|
Webbläsarstöd
Numrerna i tabellen anger den första webbläsarens version som helt stöder egenskapen.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Stödjer | 10.0 | Stödjer | Stödjer inte | Stödjer |