Change form action using JQuery

Using following code we can change the action attribute of the form and submit it