Solved

multi-tier dynamic drop down list

Posted on 2009-04-13
5
678 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

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…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Suggested Courses

634 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