Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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
Pie
Posts: 64629
86
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