HTML DOM
The willValidate read-only property of the HTMLInputElement interface indicates whether the input element is a candidate for constraint validation. It is false if any conditions bar it from constraint validation, including:
- Its HTMLInputElement.type is one of
hidden,resetorbutton; - It has a datalist ancestor;
- Its HTMLInputElement.disabled property is
true.
Value
A boolean value.
Specifications
Browser compatibility
See also
- HTMLInputElement.checkValidity()
- input
- form
- Learn: Client-side form validation
- Guide: Constraint validation
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
