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

dynamic combo boxes - drop downs

Status
Not open for further replies.

leahyj

MIS
May 5, 2004
107
US
Regarding faq333-3656

Using the first method...

I have two dropdowns that retrieve data from a database.

One holds state information and the other holds county information.

When I change the state information the form submits and grabs the counties for that state. Thats works fine.

And when I change the county the form submits, and the state stays the same in the drop down, which is good too. And the request.form("statelist") value is correct.

But when I go back and change the state to another state, the request.form("countylist") value stays as the previous county from the previous state selected.

The request.form("countylist") value should change to "select county" or index value zero ( the first value in the option dropdown.

Any ideas?

Thanks
 
Post in the javascript forum. Easiest way to do this is using an xmlhttp request triggered by an onchange event handler.
 
If the form submits the first updates your counties, it ought to work the second time as well. Can you post the relevant code?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top