You have to use simple jQuery for that, you need to add the following code after initialize the swal.
You have to use simple jQuery for that, you need to add the following code after initialize the swal.
<script type="text/javascript"> $('.swal-footer').prepend($('.swal-footer').children().last()); </script>
For example:
<script type="text/javascript"> swal({ title: "Are you sure?", text: "Do you want to restore this story?", icon: "warning", buttons:['No','Yes'], dangerMode: true, }) .then((willDelete) => { if (willDelete){ swal("Your work is done!"); }else{ swal("Your story is safe!"); } }); $('.swal-footer').prepend($('.swal-footer').children().last()); </script>
Question and answer is powered by AnsPress.io