Mehr als 2 Buttons auf Sweetalert 2
Ich habe einen Sweetalert mit 2 Knöpfen, aber ich möchte noch einen Knopf drin haben. Zum Beispiel habe ich ab sofort Ja und Nein. Ich möchte später noch eine Schaltfläche hinzufügen. bitte hilf
$("#close_account").on("click", function(e) {
e.preventDefault();
swal({
title: "Are you sure?",
text: "You will not be able to open your account!",
type: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "Yes, close my account!",
closeOnConfirm: false
},
function(){
window.location.href="<?php echo base_url().'users/close_account' ?>"
});
});
Danke im Voraus: