sweetalert success code example

Example 1: sweetalert

<script src="//cdn.jsdelivr.net/npm/sweetalert2@10"></script>

Example 2: sweetalert

swal("Hello world!");

Example 3: sweet alert bootstrap

swal("Thank you!", "We will get back to you if required", "success");

Example 4: sweetalert

Swal.fire({  title: 'Do you want to save the changes?',  showDenyButton: true,  showCancelButton: true,  confirmButtonText: `Save`,  denyButtonText: `Don't save`,}).then((result) => {  /* Read more about isConfirmed, isDenied below */  if (result.isConfirmed) {    Swal.fire('Saved!', '', 'success')  } else if (result.isDenied) {    Swal.fire('Changes are not saved', '', 'info')  }})

Tags:

Php Example