This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Populating dropdown menu using hashmaps

 
Bhaskar Dosi
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to populate a multilevel drop down. How can we use a hashmap to populate it?? I have 3 menus , the second value depends on first , and the third value depend on second value selected ?
Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65535
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a very common question, and one that has been answered many times in the HTML forum. Search for "dependent" or "cascading" dropdowns.

The short answer is to use Ajax to fetch the values of each subsequent drop down as values are selected.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!