Closed Jimmaki closed 7 years ago
swal({ title: "SUCCESS !!!", text: "You have done it !!! ", imageUrl: "js/1.png" });
This project isn't going to support setting custom HTML as strings, as I think it reinforces bad design patterns. If you want a custom modal, it should be built from scratch or using another library. SweetAlert just aims at providing a better version of alert
with some extra features, NOT replace all your modals. :)
Sorry for late response, fixed! https://jimmydance.com/contact-jimmy.html?r=1
@Jimmaki may i know how you did that with swal ?
@sunilsmith
As you can see here I copy and paste the whole FOOTER section (html) in the TEXT field of SWAL.
Example: swal({title: "Your message has been sent!!" , text: "",
*Don't forget to escape special characters
Let me know if it works
Hi @Jimmaki can you paste your code in text.. I tried to add the html like above but it didn't work for me.
Hi there
Hi, how can i a use an image as a background(not an Icon ) for the sweet alert. thanks
How do I add a link (or more) image like:
<a href="mylink.lol" target="_blank"><img src="myimage.png" alt="something"></a>
inside theswal("Good job!", "You clicked the button!", "success")
sweet alert modal?