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