Click to See Complete Forum and Search --> : multiple pull-down menus on same page
neenerbean
02-11-2003, 02:15 PM
I am new to Javascript, and quickly getting the hang of it. I don't, however, know how to put two pull-down menus on the same page. When I enter code for one, it works fine. When I add a second one, it errors on me :(
Does anyone have a code I can use to put multiple pull-down menus (for navigation, btw) on a single page?
Thanks,
Amy
Post some code, or a link for us to look at.
neenerbean
02-11-2003, 02:20 PM
http://dropitdown.com/archives/content.html
I see the problem...
You need to make two different functions, and name your forms and select name differently. Does that make sense? If not I can give you an example...
neenerbean
02-11-2003, 02:31 PM
I tried that, but seeing as I'm more versed in HTML and not so much JS (yet), I didn't know what to CHANGE in order to differentiate between the two forms.
Do I need to add code for EACH FORM in the header? Where do I put the name of the form (in the header code)?
*nag nag nag* :p
I changed your code around a bit, and now it works. Take a look.
neenerbean
02-11-2003, 02:50 PM
AHHHH SWEET! Thanks pyro :)
Your welcome. I'd recommend that you take a look at what I changed to get it to work, though. Maybe you'll be able to learn something. :D
neenerbean
02-11-2003, 03:14 PM
I noticed what you did, and also added two more menus with no problem(s). Named them "site3" & "site4" and made the other necessary changes.
Thanks again for the lesson :)
Good, glad to hear you were able to edit the script to add more menus. :D