$.ajax( url,{
type:"post",
data:{},
})
.done(function() { alert("success"); })
.fail(function() { alert("error"); })
.always(function() { alert("complete"); });
$.ajax( url,{
type:"post",
data:{},
})
.done(function() { alert("success"); })
.fail(function() { alert("error"); })
.always(function() { alert("complete"); });