Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change the contents of a dropdown based on another drop down

Status
Not open for further replies.

gameon

Programmer
Feb 23, 2001
325
GB
Hi Is it possible to haver let say two drop down lists on a web page, then change the contents of the second dropdown based on the selection of the first dropdown, without having to reload the page?

EG have a country list and a city list.

If you select a country, the corresponding city will appear in the other dropdown...

M@
 
Cheers phil that's exactly what I was after...

M@)
 
That is what I'm looking for too, but I need to find out how to have BOTH dropdowns reading from a Sql Server DB. ex. I have a form that has 2 dropdown boxes, the first shows the "DISTINCT" value of the county, when the person selects the County, I would like the second Dropdown to be filtered by the first dropdown value, to show only the people that are in that county. I'm sorry if that doesn't make sense. I seem to be finding information on how to do this with already provided information.

Please help.

Jason
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top