Answers for "sweetalert documentation"

5

Sweetalert

<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script>swal("My title", "My description", "success");</script>
Posted by: Guest on May-22-2021
0

Sweetalert

<script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
Posted by: Guest on June-27-2021
0

switch alert

swal({
	title: "Good job!",
	text: "You clicked the button!",
	icon: "success",
	button: "Aww yiss!"
});
Posted by: Guest on May-20-2020
0

change icon in sweet alert

swal({  icon: "error",});
Posted by: Guest on June-02-2020
-2

sweetalert

swal("Error!", "You clicked the button!", "error");
Posted by: Guest on February-22-2021
0

sweetalert

swal("Good job!", "You clicked the button!", "error");
Posted by: Guest on December-11-2020

Browse Popular Code Answers by Language