Skip to content

Instantly share code, notes, and snippets.

@helloncanella
Created March 25, 2017 02:10
Show Gist options
  • Save helloncanella/f52e3e58de11169b252e9b2677d10cfc to your computer and use it in GitHub Desktop.
Save helloncanella/f52e3e58de11169b252e9b2677d10cfc to your computer and use it in GitHub Desktop.
function processarFormulario(evento){
evento.preventDefault()
/*codigo para validacao*/
}
var form = document.querySelector('form')
form.addEventListener('submit', processarFormulario)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment