title: Call a function after a form is submitted using JavaScript / jQuery
body: <p>I want to call a function after a form is submitted, I see we can do this in jQuery with <code>.submit(handler function())</code> but the method description says, the handler method will be executed just before the form is submitted. How can I actually attain this? Should I use <code>setTimeout</code> after the form is submitted or is there any other solution for this?</p>