jquery swal code example
Example 1: switch alert
swal({
title: "Good job!",
text: "You clicked the button!",
icon: "success",
button: "Aww yiss!"
});
Example 2: confirm sweet alert
swal("Are you sure?", { dangerMode: true, buttons: true,});
Example 3: change icon in sweet alert
swal({ icon: "error",});