Question and answer is powered by AnsPress.io
I want to replace swal ok button name to CHOOSE AGAIN.
In my website I am using swal popup, when user cant chooses at least 5 categories then it gives a message to user Please choose at least 5 categories from the list, and it displays Choose again button not OK. How can I do for this?
If you want to replace swal OK button, then you need to follow this code. Example code is here:
<script> swal("Please choose atleast 5 category from the list.", { icon: "error", title: "Oops!", buttons: [, "CHOOSE AGAIN"], }); </script>
I hope it will be helpful for you.