Input Submit formNoValidate Attribute
Definition and Usage
formNoValidate
Sets or returns whether 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 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 Χαρακτηριστικό
Instance
Example 1
Determine whether form data should be verified:
var x = document.getElementById("mySubmit").formNoValidate;
Example 2
Set the formNoValidate property:
document.getElementById("mySubmit").formNoValidate = false;
Syntax
Return the formNoValidate property:
submitObject.formNoValidate
Set the formNoValidate property:
submitObject.formNoValidate = true|false
Attribute value
Value | Description |
---|---|
true|false |
Whether form data should be verified (at submission).
|
Τεχνικές λεπτομέρειες
Αποτελεσματική Επιστροφή: | Boolean, επιστρέφει αν δεν πρέπει να ελεγχθούν τα δεδομένα του φόρμα true ;αν όχι, επιστρέφει false . |
---|
Υποστήριξη Βrowser
Τα αριθμήματα στην τάβλη αναφέρουν την έκδοση του προγράμματος περιήγησης που υποστηρίζει πλήρως το χαρακτηριστικό.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Υποστήριξη | 10.0 | Υποστήριξη | Μη Υποστήριξη | Υποστήριξη |