PDA

View Full Version : using JS to generate <select> boxes


steviecee
06-29-2005, 04:20 PM
Is it possible to use a <select> to generate another <select> depending on what the user picks?

For example if the user selects option 1 in the first <select> another select box is displayed, or if the user selects option 2 in the first select another, different select box is displayed etc etc.

I'm sure it is possible, but i'm confused about the logic of the problem and how (if needed) you can imbed the <select>'s in a js function.Any pointers to tutorials or any suggestions on how to tackle the problem would be greatly appreciated
Cheers
Steve

nikkiH
06-29-2005, 04:26 PM
I've got a few ways of doing similar things.
Check out the free stuff at the bottom of my page here.
http://www.ipwebdesign.net/help.html

This one is probably closest to what you want.
http://www.ipwebdesign.net/useful_dynamicSelects.html

steviecee
06-30-2005, 09:56 AM
that second link is perfect!! thanks a lot for your time mate
Steve :thumbsup: