HTMLInputElement: willValidate property
HTML DOM
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 type is one of
hidden,resetorbutton; - It has a datalist ancestor;
- Its 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