Input Submit formNoValidate Attribute
Definition and Usage
formNoValidate
Attribute to set or return whether 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 form data should not be verified 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:Atribut formnovalidate <input> HTML
Instance
Example 1
Determine whether form data should be verified:
var x = document.getElementById("mySubmit").formNoValidate;
Example 2
Set formNoValidate attribute:
document.getElementById("mySubmit").formNoValidate = false;
Syntax
Return formNoValidate attribute:
submitObject.formNoValidate
Set formNoValidate attribute:
submitObject.formNoValidate = true|false
Attribute value
Value | Description |
---|---|
true|false |
Whether the form data should be verified (when submitted).
|
Detil Teknis
Nilai pengembalian: | Bilangan boolean, jika data formulir tidak harus diverifikasi, kembalikan true ; jika tidak kembalikan false . |
---|
Dukungan Browser
Angka di tabel menunjukkan versi browser yang mendukung fitur ini penuh.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Dukungan | 10.0 | Dukungan | Tidak Dukungan | Dukungan |