Add buttons As you can see, the plugin adds an OK button to the alert. The button is fully customizable. You can even add new buttons to the alert message. Sometimes, you may need to handle button click events.
All you have to do is call the swal() function. swal("Here's a message!", " Have a nice day!")
I want to change the 'Ok' button with 'Select patient' and the 'Cancel' to 'Speed case'. How can I do that?
swal({
text: "Start new case by",
buttons: true,
confirmButtonText: "Select Patient?",
cancelButtonText: "Speed Case?",
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With