jquery - Chage form action based on user input -
i have form:
<form action"url.aspx"> </form>
the user has able choose pro or nonpro. if user chooses pro has choose action="url1.aspx" if user chooses pro has choose action="url2.aspx".
you can manipulate "action" attribute of form via javascript/jquery
$( your-form ).attr( 'action', 'url1.aspx' ); $( your-form ).attr( 'action', 'url2.aspx' );
so whatever mechanism user using choose "pro" or "nonpro" (you don't mention , don't see code), manipulate action attribute of form appropriately.
Comments
Post a Comment