Web/API/HTMLSelectElement/checkValidity

From Get docs


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 StandardThe definition of 'HTMLSelectElement.checkValidity()' in that specification. Living Standard No change since the latest snapshot, HTML5.
HTML5The definition of 'HTMLSelectElement.checkValidity()' in that specification. Recommendation Initial definition, snapshot of HTML Living Standard

Browser compatibility

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.

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
checkValidity Chrome

Full support 4

Edge

Full support 12

Firefox

Full support 4

IE

Full support 10

Opera

Full support 9

Safari

Full support 5

WebView Android

Full support ≤37

Chrome Android

Full support 18

Firefox Android

Full support 4

Opera Android

Full support 10.1

Safari iOS

Full support 4.2

Samsung Internet Android

Full support 1.0

Legend

Full support  
Full support


See also