I'm trying to make an sweet alert with the html option:
swal({
title: "HTML <small>Title</small>!",
text: "A custom <span style="color:#F8BB86">html<span> message.",
html: true
});
But instead of that text put a button, I have tried this one:
var boton = "button";
swal({
title: "HTML <small>Title</small>!",
text: "<input type=" + boton + ">",
html: true
});
but it doesn't work! (I want to make something like a menu with options(the buttons)) Does anybody know how to do something like that? Thanks!
appears,an
– Miren Igone Bruna Dominguez Jan 28 '16 at 10:34and other stuffs but the input doesn't work a piece of code that may help: if(keyMap & 4){ here the sweet alert }