the alert inside my success function response on ajax wont appear? -
$.ajax({ type: "post", url: url, data: data, success: function(response){ alert("success"); --> 1 } });
i've inserted data sign-up form want inform user registered on alert box
maybe it's not succeeding. have tried throwing in error handler see if it's failing?
$.ajax({ type: "post", url: url, data: data, success: function(response){ alert("success"); --> 1 }, error: function (xhr, status, error){ console.log('error', error); } });
Comments
Post a Comment