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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -