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 |
---|---|---|
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 HTML Living Standard |
Browser compatibility
BCD tables only load in the browser
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.