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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dropdown

Status
Not open for further replies.

Keendev

Technical User
Jan 23, 2006
106
PH
Hi, I need help.

I have a form and a 2 select dropdown that pulls data values in my database....

my example is State and Cities.

When user selects a state on the dropdown1, the dropdown 2 values(cities) will change depending on the selected state.

any advice?
thank you in advance.
 
You could do this with JavaScript instead by loading all sets of states and cities to the page to begin with. Alternatively, the states dropdown could act as a jumpbox and load a new page with different cities. Depending on the total number of results you have, I think the first of those options would probably be the more elegant from a user's point of view.
 
I would have to agree, MSRez. You would need either Js, to repopulate the dropdown, or submit the first drop down, and re-render, the form to get the appropriate values in the second drop-down.

I would think the JS is the more seamless solution from a user point of view.

You might want to ask this in the JS forum here: forum216



----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top