Questions on nested pulldown menus (AKA "cascading pulldown"?) - TechRepublic
General discussion
February 27, 2012 at 08:04 AM
essaydoctor

Questions on nested pulldown menus (AKA “cascading pulldown”?)

by essaydoctor . Updated 14 years, 4 months ago

I am creating a nifty site using an online website developer called yola.com. I’m adding some HTML coding that I’m putting together. I’m trying to create a “nested pulldown”: When a user pulls down the first menu which lists the 50 states of the USA, the second pull down menu becomes auto-populated with all the entities affiliated with that state.

How do I go about doing this?

So far, I have only 1 pulldown menu, and it contains all 400+ entries. It is not elegant at all and quite ugly. Any help would be greatly appreciated.

In the past, I’ve tried looking at the source code from similar pulldown menus on cars.com (where they have “nested pulldowns” – when you select “Acura” for example, the next pulldown would get populated with “Integra, RL, etc.”) as well as viewing the source code for a pulldown on yahoo.com.

Basically, my source code below is not elegant. It has all the entries. I’d like to segregate the states with the testing sites. Another words: A pulldown for “States” and another one for “Testing Centers within that state”.

This discussion is locked

All Comments