use jquery ajax don't have callback when return true
问题 I try use query ajax and when I have "return false" I get callback as well $(document).ready(function(){ $("form#Form").submit(function(){ $.ajax({ url: "ajax.php", type: "POST", data: $(this).serialize(), success: function(callback){ alert(callback); } //success }); //ajax return false; }); //submit }); //ready in the php file I just echo "dennis", it works and I get alert with content "dennis". when I try something like this: $(document).ready(function(){ $("form#Form").submit(function(){ $