Skip to content

Instantly share code, notes, and snippets.

@BrunoMoraes-Z
Created October 16, 2023 12:45
Show Gist options
  • Save BrunoMoraes-Z/aaee9c6844463aefcd00eff35b026691 to your computer and use it in GitHub Desktop.
Save BrunoMoraes-Z/aaee9c6844463aefcd00eff35b026691 to your computer and use it in GitHub Desktop.
document.getElementById('input-message').validity.valueMissing; //Return if element is valid ou not
document.getElementById('input-message').validationMessage; //return the error message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment