function submit_form(form) { $.ajax({ url: form.action, data: $(form).formSerialize(), success: function(data) { // do something } }); return false; //!important }