why we use swal in jquery code example
Example 1: confirm sweet alert
swal("Are you sure?", { dangerMode: true, buttons: true,});
Example 2: change icon in sweet alert
swal({ icon: "error",});
swal("Are you sure?", { dangerMode: true, buttons: true,});
swal({ icon: "error",});