Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created December 16, 2019 18:52
Show Gist options
  • Save parzibyte/de999fc61266810d2ee7920ef88286cc to your computer and use it in GitHub Desktop.
Save parzibyte/de999fc61266810d2ee7920ef88286cc to your computer and use it in GitHub Desktop.
Swal
.fire({
title: "Tu nombre",
input: "text",
showCancelButton: true,
confirmButtonText: "Guardar",
cancelButtonText: "Cancelar",
})
.then(resultado => {
if (resultado.value) {
let nombre = resultado.value;
console.log("Hola, " + nombre);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment