Portal Home > Knowledgebase > Articles Database > Is it possible to use this JavaScript INPUT method with SELECT?
Posted by FinalFrontier, 01-20-2012, 12:18 AM I use this code in a form that posts to two different destinations, I use JavaScript to achieve it. I am still wanting to do is the same thing, but with drop down menu's (SELECT) instead of INPUT. Is there anyone clever that can think of a solution? I'm still trying to work on it, but haven't thought of anything up yet..
Posted by webstartavenue, 01-28-2012, 07:25 PM Simple! Use onchange to trigger a javascript call. Your JavaScript function: Your select box element. Add option elements and the page to redirect to in the option value attribute: Note: This code is untested but should get you 90% there.
Add to Favourites Print this Article