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

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support Yes Yes410 Yes Yes
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support ? Yes Yes4 ? Yes ?

See also

Document Tags and Contributors

Contributors to this page: connorshea, libbymc, anthonyryan1, gitaarik, fscholz, crissdev, teoli
Last updated by: connorshea,