Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
07-30-2002, 04:04 AM #1
- Join Date
- Jul 2002
- Thanked 0 Times in 0 Posts
DoubleCombo - Having trouble getting 2 menu working
The original script was set up with the first menu having 3 options and the second one had an amount dependant on which one was selected in the first menu. I've changed mine to have 8 options in the first menu and the second menu SHOULD come out with anything from 15-20 options depending on which option was selected in the first menu. Well, for some reason now when I select an option in the first menu NOTHING happens in the second. NOTHING at all. It's as if it's just dead. I haven't modified any of the script concerning the redirect function but perhaps if there is someone out there who can actually explain what each part of the script is there for, it might help ME to figure out where I've gone wrong.
Here is the original script:
<p><select name="example" size="1" onChange="redirect(this.options.selectedIndex)">
<select name="stage2" size="1">
<option value="http://www.wired.com">Wired News</option>
<input type="button" name="test" value="Go!"
Double Combo Script Credit
var group=new Array(groups)
for (i=0; i<groups; i++)
group=new Option("Wired News","http://www.wired.com")
group=new Option("ABC News","http://www.abcnews.com")
At the top of the code it has the onChange command which I figure is what tells the program to move to the script which determines which information to output in the second drop down menu. I have kept this part the same in my own version so I don't know why it doesn't work. If someone could explain the FUNCTION redirect part to me I would be most appreciative