Web Hosting Talk







View Full Version : Javascript:Select Menus


ARtennis1028
03-04-2003, 10:56 PM
Does anyone know if there is a javascript object given to the options of a drop down menu. So if i have
<select name=name>
<option>1</option>
<option>2</option>
</select>

form.name.__________
is there something like that that will give me the options in the select menu.

t c
03-04-2003, 11:02 PM
What are you referring to or better yet trying to do? If you clarify this more thoroughly I may be able to help you.

ARtennis1028
03-04-2003, 11:27 PM
Sample (http://artennis1028.homeip.net/dropdown.php)
The user would select from Box A and Box B.
Whatever they choose will be an option in the result box
So if they choose "One" in box A and "B" in Box B, the result box would contain 2 options- "One" and "B"

t c
03-04-2003, 11:45 PM
Is that possible? I am sure it is.. maybe something like...
in the onChange functions for the Box A & B, make it set some variables and make the Result Box do a check on the variables and then make it show the correct form.

If you are still not understanding and you have AIM, aim me: shipping.