My Ajax method looks like this
$.post(url,{ ajax_call:\"putDonation\", addresse:addresse, phone:phone, email
Its there in the site reference-
swal({ title: "Ajax request example", text: "Submit to run ajax request", type: "info", showCancelButton: true, closeOnConfirm: false, showLoaderOnConfirm: true, }, function(){ $.post(url,data,callback) });