52
rated 0 times
[
53]
[
1]
/ answers: 1 / hits: 27034
/ 7 Years ago, fri, september 22, 2017, 12:00:00
How do I style AJAX
respond data in SweetAlert
below is my code and sample image any help will be duly appreciated. Order screenshot
swal({
title: Confirm your transaction,
html:true,
showSpinner: true,
showCancelButton: true,
confirmButtonColor: #DD6B55,
confirmButtonText: Send,
closeOnConfirm: false
},function () {
$.ajax({
type: post,
url: remoteUrl,
data: largeParams,
success: function (data) { }
}).done(function (data) {
swal(Thank you for your order, data, success);
}).error(function (data) {
swal(Oops, We couldn't connect to the server!, error);
});
});
More From » jquery