Input Submit formNoValidate Attribute
Definition and Usage
formNoValidate
Property 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 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.
Please see also:
HTML Reference Manual:ລາຍການ <input> formnovalidate ຂອງ HTML
ຄວາມຄິດທີ່ຕັ້ງຢູ່
ຕົວຢ່າງ 1
ການກວດສອບວ່າຄວນການກວດກາຂໍ້ມູນຟອມ:
var x = document.getElementById("mySubmit").formNoValidate;
ຕົວຢ່າງ 2
ການຕັດສິນໃຈປະສົງ formNoValidate:
document.getElementById("mySubmit").formNoValidate = false;
ສັນຍາ
ການກັບຄືນປະສົງ formNoValidate:
submitObject.formNoValidate
ການຕັດສິນໃຈປະສົງ formNoValidate:
submitObject.formNoValidate = true|false
ຄວາມຜົນຂອງປະສົງ
ຄວາມຜົນ | ການອະທິບາຍ |
---|---|
true|false |
ການຕັດສິນໃຈວ່າຄວນການກວດກາຂໍ້ມູນຟອມ(ບໍ່ດຳເນີນການສົ່ງຂໍ້ມູນ).
|
技术细节
返回值: | 布尔值,如果不应验证表单数据,则返回 true ;否则返回 false 。 |
---|
浏览器支持
表中的数字注明了首个完全支持该属性的浏览器版本。
ຊາຣີ | ເອດຈູກ | ຟຣີສ | ແຊັບຟີ | ໂອເປຣາ |
---|---|---|---|---|
ຊາຣີ | ເອດຈູກ | ຟຣີສ | ແຊັບຟີ | ໂອເປຣາ |
ສະໜັບສະໜູນ | 10.0 | ສະໜັບສະໜູນ | ບໍ່ສະໜັບສະໜູນ | ສະໜັບສະໜູນ |