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!

Dependence Dropdown list

Status
Not open for further replies.

Joelo

MIS
Sep 27, 2003
61
I have two dropdown lists and when I select one I want to load the second dropdownaccording with the contents related to the first dropdown

I.E

When I select Ohio from the "State" dropdown List, I want the "City" Dropdown list loaded with cities in Ohio


Please Help me out

Thanks in Advance

 
Check out the FAQs for more informaion on this. Basically wat your trying to do is chain two dropdowns. This can be acomplished using one of two differant methods, either a client-side scripting method or a server-side refresh method.
The client-side refresh method relies on you placing all the data for the second dropdown into an aray and then dynamically building option objects after a selection from the first dropdown. The server-side refresh method requires the page to submit after the first selection, at which point it loads the data forthe second dropdown and re-displays the page with the second dropdown populated.

As I said, more examples and information are available in the FAQs, let us know if yoiu need further assistance beyond what is available there.

-T

01000111 01101111 01110100 00100000 01000011 01101111 01100110 01100110 01100101 01100101 00111111
The never-completed website:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top