In my JSP I set specific action name (/action1.do)using html:form.
For different hypher link click I would like to submit to different action name(/action2.do) with javascript validation.
I am trying to change the form action value using javascript and submitting that if validation succeed.
document.forms[0].action=/action2.do;
document.forms[0].submit(); // not working
second submit call is not working . Action value is changed but it is not submitting the form. Any help.
Thanks in advance.
For different hypher link click I would like to submit to different action name(/action2.do) with javascript validation.
I am trying to change the form action value using javascript and submitting that if validation succeed.
document.forms[0].action=/action2.do;
document.forms[0].submit(); // not working
second submit call is not working . Action value is changed but it is not submitting the form. Any help.
Thanks in advance.