HTMLSelectElement.checkValidity()
El método HTMLSelectElement.checkValidity()
comprueba si el elemento tiene restricciones y si las cumple. Si el elemento no cumple sus restricciones, el navegador lanza un evento cancelable invalid (en-US)
al momento y luego devuelve false
.
Sintaxis
var result = selectElt.checkValidity();
Especificaciones
Especificación | Estado | Comentario |
---|---|---|
HTML Living Standard La definición de 'HTMLSelectElement.checkValidity()' en esta especificación. |
Living Standard | Sin cambios desde el último snapshot, HTML5. |
HTML5 La definición de 'HTMLSelectElement.checkValidity()' en esta especificación. |
Recommendation | Definición inicial, snapshot de HTML Living Standard |
Compatibilidad en navegadores
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.