HTMLButtonElement: willValidate property
HTML DOM
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 type is
resetorbutton; - It has a datalist ancestor;
- The 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