Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created Apr 12, 2021
Embed
What would you like to do?
// Obtener referencias
const $formulario = document.querySelector("#formulario"),
$nombre = document.querySelector("#nombre"),
$correo = document.querySelector("#correo");
$formulario.onsubmit = evento => {
evento.preventDefault();
// Aquí validar
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment