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;
};
RT @CodeSnippetsNET: How to submit a form with ajax in #jQuery http://t.co/LzcHpnkFLe #js #javascript #programming
RT @CodeSnippetsNET: How to submit a form with ajax in #jQuery http://t.co/LzcHpnkFLe #js #javascript #programming