Connecting Tech Pros Worldwide Forums | Help | Site Map

Cascading drop down menus - help please !

Ian
Guest
 
Posts: n/a
#1: Jul 23 '05
Can anyone help me with a problem I have. What I need to be able to do
is have the user presented with a single dropdown menu within a form
using HTML <SELECT> and <OPTION>. Once they choose a particular option I
then want another dropdown to appear alongside it with a list of options
that are dependent on what was selected in the first dropdown. Then I
want the same thing to happen a third time, i.e when the user selects an
option from the second dropdown a third one appears on the screen to the
right of it and then whatever the user chooses from this final dropdown
is used in the form submission.

Because I am a complete beginner it would be really useful to have an
actual code example that I could then modify with my own options.

Would really appreciate help with this.


RobG
Guest
 
Posts: n/a
#2: Jul 23 '05

re: Cascading drop down menus - help please !


Ian wrote:[color=blue]
> Can anyone help me with a problem I have. What I need to be able to do
> is have the user presented with a single dropdown menu within a form
> using HTML <SELECT> and <OPTION>. Once they choose a particular option I
> then want another dropdown to appear alongside it with a list of options
> that are dependent on what was selected in the first dropdown. Then I
> want the same thing to happen a third time, i.e when the user selects an
> option from the second dropdown a third one appears on the screen to the
> right of it and then whatever the user chooses from this final dropdown
> is used in the form submission.
>
> Because I am a complete beginner it would be really useful to have an
> actual code example that I could then modify with my own options.
>
> Would really appreciate help with this.
>[/color]

Matt Kruze has a good example here:

<URL:http://www.mattkruse.com/javascript/dynamicoptionlist/>


--
Rob
Ian
Guest
 
Posts: n/a
#3: Jul 23 '05

re: Cascading drop down menus - help please !


On Mon, 11 Apr 2005 22:54:26 GMT, RobG <rgqld@iinet.net.auau> wrote:
[color=blue]
>Ian wrote:[color=green]
>> Can anyone help me with a problem I have. What I need to be able to do
>> is have the user presented with a single dropdown menu within a form
>> using HTML <SELECT> and <OPTION>. Once they choose a particular option I
>> then want another dropdown to appear alongside it with a list of options
>> that are dependent on what was selected in the first dropdown. Then I
>> want the same thing to happen a third time, i.e when the user selects an
>> option from the second dropdown a third one appears on the screen to the
>> right of it and then whatever the user chooses from this final dropdown
>> is used in the form submission.
>>
>> Because I am a complete beginner it would be really useful to have an
>> actual code example that I could then modify with my own options.
>>
>> Would really appreciate help with this.
>>[/color]
>
> Matt Kruze has a good example here:
>
> <URL:http://www.mattkruse.com/javascript/dynamicoptionlist/>[/color]

That's great, just what I was looking for. Thanks.

Closed Thread