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; };
All the Code Snippets and Samples you need
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; };
You must be logged in to post a comment.
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