sweetalert style code example
Example 1: switch alert
swal({
title: "Good job!",
text: "You clicked the button!",
icon: "success",
button: "Aww yiss!"
});
Example 2: sweet alert bootstrap
Swal.fire({ icon: 'success', title: 'Oops...', text: 'Something went wrong!', footer: '<a href>Why do I have this issue?</a>'})
Example 3: sweet alert bootstrap
Swal.fire( 'Good job!', 'You clicked the button!', 'success')
Example 4: change icon in sweet alert
swal({ icon: "error",});