Jim
0
Q:

sweetalert2 example html

swal({
     title: "Deleted!",
     text: "Your row has been deleted.",
     button: "Close", // Text on button
     icon: "success", //built in icons: success, warning, error, info
     timer: 3000, //timeOut for auto-close
      buttons: {
        confirm: {
          text: "OK",
          value: true,
          visible: true,
          className: "",
          closeModal: true
        },
        cancel: {
          text: "Cancel",
          value: false,
          visible: true,
          className: "",
          closeModal: true,
        }
      }
     });
2
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@9"></script>
2
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@10"></script>
0
$.sweetModal.prompt('Can I haz cheezeburger?', 'Can I?', 'Nope', function(val) {
	$.sweetModal('You typed: ' + val);
});
0

Tags

New to Communities?

Join the community