Results 1 - 2 of 2


The HTMLSelectElement.checkValidity() method checks whether the element has any constraints and whether it satisfies them. If the element fails its constraints, the browser fires a cancelable invalid event at the element, and then returns false.
API Constraint Validation API HTML DOM HTMLSelectElement Method Reference Référence


The ValidityState interface represents the validity states that an element can be in, with respect to constraint validation. Together, they help explain why an element's value fails to validate, if it's not valid.
API Constraint Validation API Forms HTML DOM Interface