Forum Moderators: open

Message Too Old, No Replies

Simple form option variable change

         

ahmedtheking

10:12 am on Apr 5, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi, just wondering how i can do this: I've got a form, with a select menu, and I want a variable to be passed to a button when an option is selected from the select menu, eg:

select menu:

Option 1 > value = 1
Option 2 > value = 1
...

When the user selects, say, option 1 (onchange?), I want the value to be a js variable so that I can tell a button (using macromedia gotourl) to go to a certain url where the picked option's value is in it.

How can I go about doing this?

phillipandrews

1:14 pm on Apr 11, 2006 (gmt 0)

10+ Year Member



Better not change the value per se... you need just to link some simple JavaScript code to the button that checks which one of the selects are selected.