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
.
Syntax
var result = selectElt.checkValidity();
Specifications
Specification | Status | Comment |
---|---|---|
WHATWG HTML Living Standard The definition of 'HTMLSelectElement.checkValidity()' in that specification. |
Living Standard | No change since the latest snapshot, HTML5. |
HTML5 The definition of 'HTMLSelectElement.checkValidity()' in that specification. |
Recommendation | Initial definition, snapshot of WHATWG HTML Living Standard |