Follow-up of #5
This is closed with 0.5.0 release, change the inputType:
$('button.delete-account').click(function(e) {
swal({
title: "Are you sure you want to delete your account?",
text: "If you are sure, type in your password:",
type: "input",
inputType: "password",
showCancelButton: true,
closeOnConfirm: false
}, function(typedPassword) {
console.log(typedPassword);
});
});
As @parterburn said, just use inputType
and you should be good to go! Also, feel free to check out the SweetAlert tutorial if you're unsure how to use the input features.
Thanks for the pointers, and sorry for the noise :)
It's a working solution! Thanks :)
it work 👍
Most helpful comment
This is closed with 0.5.0 release, change the inputType: