This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes HTML, CSS and JavaScript and the fly likes dynamically poplulate select menus based on first select menu Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "dynamically poplulate select menus based on first select menu" Watch "dynamically poplulate select menus based on first select menu" New topic
Author

dynamically poplulate select menus based on first select menu

Chhaya Dhanani
Ranch Hand

Joined: Apr 11, 2001
Posts: 70
hi all,
i have two select dropdowns.
one has name of cities which is fetched from the database and displayed using a vector
depending on the city select , i want to lsit the executivenames for that city which also i get from database and is stored in vector
i want to know how can i achieve this using javascript on client side
i.e
one a city is selected, only executive name from that city are shown in the second select box.
if i select city as ALL then all executive names should be shown
need this on urgent basis....
neck is in the line of fire...
Thanx in advance
Chhaya
Charlie Sturman
Ranch Hand

Joined: Apr 04, 2002
Posts: 112
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: dynamically poplulate select menus based on first select menu