I am using the following plugin here:
jquery.malsup.com/form/
I want to make it so that when the user clicks Submit, it changes the attribute action like:
$('$theform').get(0).setAttribute('action', 'theurliwant');
My issue is, I do not know where to put that because the JQuery Form Plugin appears to have its own handlers, and when i stick a click handler on the submit button, it seems to catch the event without going to JQuery Form Plugin’s handlers.
Where can I stick the code to change the action?
Take a look at the documentation for your plugin. The answer is there.
Under options
There is also
beforeSubmit