MDN wants to learn about developers like you: https://qsurvey.mozilla.com/s3/MDN-dev-survey

この記事はまだボランティアによって 日本語 に翻訳されていません。ぜひ MDN に参加して翻訳を手伝ってください!
この記事を English (US) で読むこともできます。

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

Browser compatibility

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support (Yes) (Yes) 4.0 (2.0) 10 (Yes) (Yes)
Feature Android Chrome Edge Firefox Mobile (Gecko) Firefox OS IE Phone Opera Mobile Safari Mobile
Basic support ? (Yes) (Yes) 4.0 (2.0) 1.0 ? ? (Yes)

See also

ドキュメントのタグと貢献者

 このページの貢献者: libbymc, anthonyryan1, gitaarik, fscholz, crissdev, teoli
 最終更新者: libbymc,