aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes Auto generate drop down list Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Auto generate drop down list" Watch "Auto generate drop down list" New topic
Author

Auto generate drop down list

michael yue
Ranch Hand

Joined: Nov 20, 2003
Posts: 204
How to implement a page that have a drop down list and on clicking any one of the value in the list, then a second drop down list will automatically grab some value from a table in a database and list it down accordingly. I have seen this being implemented on some registration page on the net.
For example a drop down list with all the names of the countries. When a country is selected, example US then a second drop down list will load all the names of the states in US. How can I do this using jsp?

Thank you
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56233
    
  13

This sort of thing is implemented mostly with Javascript on the client side. And since this has been discussed in that forum quite a few times, I'm moving this along to the HTML/Javascript forum.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Auto generate drop down list
 
Similar Threads
dynamic drop down list values
How to use ajax in portlet ?
How to automatically change the page contents with change in drop down list option selection
Drop down list value
Displaying record from combo box