HTMLSelectElement.checkValidity()
O HTMLSelectElement.checkValidity()
método verifica se o elemento possui restrições e se as satisfaz. Se o elemento falhar suas restrições, o navegador dispara um evento invalid (en-US)
no elemento e, em seguida, retorna false
.
Sintaxe
var resultado = selectElt.checkValidity();
Especificações
Especificação | Status | Comentário |
---|---|---|
HTML Living Standard The definition of 'HTMLSelectElement.checkValidity()' in that specification. |
Padrão em tempo real | No change since the latest snapshot, HTML5. |
HTML5 The definition of 'HTMLSelectElement.checkValidity()' in that specification. |
Recomendação | Initial definition, snapshot of HTML Living Standard |
Browser compatibilidade
BCD tables only load in the browser