Solved

multi-tier dynamic drop down list

Posted on 2009-04-13
5
676 Views
Last Modified: 2013-11-19
Hi- Total noob here.
I need to have a drop down list that populates a second drop down list which then populates a third drop down list.  For example: the first might have 3 options [A,B,C].  The next would have options loaded according to the selection of the first. For example [A1,A2,A3] or [B1,B2,B3,B4,B5] or [C1,C2].  When the 2nd list's selection is made, the third list is populated accordingly.  So the third list might have lists like this waiting to be loaded - [A1a,A1b,A1c] or A2a,A2b] or [B1a,B1b,B1c] and so on.  I hope this makes sense to someone.

I have NO idea how to make this work with javascript, asp, ajax or anything.  It will be on an aspx webpage but the data that fills the lists cannot be from a server - unless you can explain how I can do that in development.  (Sorry for being so helpless).

I've seen examples of one dropdown populating a second but they don't go to the third tier.  These examples had the options hard-coded into the javascript... and that was OK with me.

I would be grateful for any leads to tutorials or examples of the 3 tier thingy I've described.

TIA your expert input.

J2
0
Comment
Question by:dzash2000
  • 3
  • 2
5 Comments
 
LVL 15

Expert Comment

by:spprivate
ID: 24131939
Not sure if i understood correctly.
You select dd1 say countries
You populate another dd say states
You select one state,then third dd say cities populate the third one.correct.
0
 

Author Comment

by:dzash2000
ID: 24132070
spprivate - thanks for the reply.  Yes.  Your description is accurate.
0
 
LVL 15

Accepted Solution

by:
spprivate earned 125 total points
ID: 24132145
That should be pretty easy.\
Here is an example
http://www.koderguru.com/tutorials/javascript/dynamiclist.php
Now have the same code as in first dropdown ,for second dropdown as well.
I dont see any issue
0
 

Author Closing Comment

by:dzash2000
ID: 31569627
spprivate - thanks for the link. It was simple enough for me to see what was going on but I had to figure out how to go to the 3rd tier (your example only showed 2 ).  However because the example was simple and clear I actually WAS able to work it out myself - so you made me work at it and now I feel smarter!!  Thanks.
0
 

Author Comment

by:dzash2000
ID: 24132370
Thanks - while the example doesn't go to the third tier as I had needed it does provide enough info in a simple enough example so that I could actually work out the 3rd tier on my own.  I now feel like I'm smarter than before!
D2
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Html Table looping 4 26
jQuery on Submit 4 46
How to filter by key press ? 6 25
Javascript object functions help 1 6
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question