wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes dynamically populating drop down list Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "dynamically populating drop down list" Watch "dynamically populating drop down list" New topic
Author

dynamically populating drop down list

Naresh Chaurasia
Ranch Hand

Joined: May 18, 2005
Posts: 356
Hi folks, i am having two drop down list. List1 has countries and List2 has corresponding state the countries in List1.

If is select US in List1, can i populate the states in US in List2. If the user changes to India in List1 the the List2 is populated with the corresponding states, using javascript.

thnx in advance


SCJP 1.4, SCWCD1.4, OCA(1Z0-007)
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
called a double combo or linked select. You can either do it with a traditional postback or with Ajax. Search Google, there are plenty of examples out there.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: dynamically populating drop down list