I am using spring mvc in my project.
<form:form method="" action="" id="myform" commandName="users">
I have this form, want to add action a runtime using jquery. how can I do it
Using javascript I was doing as which worked fine
document.getElementById("myform").action = "changePWD"
document.getElementById("myform").method="POST";
Using jQuery:
Why would you not do it with Javascript though if that is working fine as you say?