How to Add Ajax Call with sweet alert

前端 未结 4 1206
后悔当初
后悔当初 2020-12-18 00:08

My Ajax method looks like this

$.post(url,{
            ajax_call:\"putDonation\",
            addresse:addresse,
            phone:phone,
            email         


        
4条回答
  •  無奈伤痛
    2020-12-18 00:23

    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)
    });
    

提交回复
热议问题