Skip to content
Advertisement

Change form action based on drop down selection

Need form to change it’s action depending on the selection from a specific drop down menu. On change should trigger the script and change the action before user submits. Easier said than done when you’re new to JS.. thanks for any help!

JavaScript

Advertisement

Answer

Your code is missing the part to get the selected item from the selectbox.

JavaScript

The rest should be ok and i have created a Fiddle

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement