How to Change Form Action with JavaScript and jQuery
Here’s how to change form action with JavaScript and jQuery respectively.
document.xxxForm.action = "URL";
$("#xxxForm").attr("action","URL");
That’s all from the Gemba.