LearnFast.Ninja

jQuery change action form url

Get the form element by jQuery then use attr function and change the value of action attribute.

Main idea: Get the form element by jQuery then use attr function and change the value of action attribute. 

$('form').attr('action', 'new_url.html');

 
Result:


Tags

jquery

action