$.ajax('s done not called
Hi,
I have below simple ajax call to post a form. the form is being successfully posted and data were saved to the database but the problem here is my done is never been invoked and i am not getting the console.log("done") nor the rest of the done code.
where is the issue here please?
- $.ajax({
- method: "POST",
- url: "save_student.php",
- data: $("#frmNewStudent").serialize(),
- dataType: "JSON",
- beforeSend: function()
- {
- $("#ButtonSaveNewStudent").hide();
- $("#ImageLoading").show();
- }
- }).done(function(data)
- {
- console.log("done");
- console.log(data);
- window.location.replace('my_kids.php');
- });
Thanks,
Jassim