submit form does not stop in jquery ajax call

I assume you have something like:

form.submit(function(event) {
    $.ajax(...);
});

You want to return false (or call event.preventDefault()) in the event handling function itself, and not in the AJAX call, such as:

form.submit(function(event) {
    event.preventDefault();
    $.ajax(...);
});

Leave a Comment