Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

multi-tier dynamic drop down list

Posted on 2009-04-13
5
Medium Priority
?
681 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 500 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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
This article discusses how to create an extensible mechanism for linked drop downs.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

885 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