Skip to content

Instantly share code, notes, and snippets.

@LennonSantos
Last active April 13, 2022 18:00
Show Gist options
  • Save LennonSantos/d41ddcc62006f3ac832a3b02ff55fb0e to your computer and use it in GitHub Desktop.
Save LennonSantos/d41ddcc62006f3ac832a3b02ff55fb0e to your computer and use it in GitHub Desktop.
Mensagem costumizada na validação de input/formulário
<input
required
oninvalid="this.setCustomValidity('Este campo é obrigatório!')"
oninput="this.setCustomValidity('')"
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment