This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

dynamically populating drop down list  RSS feed

 
Naresh Chaurasia
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!