To submit a form with ajax in jQuery you can use the following snippet.
Sample jQuery
jQuery.fn.submitWithAjax = function() { this.submit(function() { $.post(this.action, $(this).serialize(), null, "script"); return false; }); return this; };
To submit a form with ajax in jQuery you can use the following snippet.
jQuery.fn.submitWithAjax = function() { this.submit(function() { $.post(this.action, $(this).serialize(), null, "script"); return false; }); return this; };