I'm attempting to create a sweet alert using the HTML option:
swal({
title: "HTML <small>Title</small>!",
text: "A custom <span style="color:#F8BB86">html<span> message.",
html: true
});
Instead of just text, I want to include a button. I've tried the following:
var boton = "button";
swal({
title: "HTML <small>Title</small>!",
text: "<input type=" + boton + ">",
html: true
});
Unfortunately, this doesn't seem to work as expected! I'm looking to create a menu with options in the form of buttons. Does anyone have any suggestions on how to achieve this? Thank you!