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
html
var result = selectElt.checkValidity();
Especificaciones
Specification |
---|
HTML Standard # dom-cva-checkvalidity-dev |
Compatibilidad con navegadores
BCD tables only load in the browser