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!

Reset Form Drop Down list to default

Status
Not open for further replies.

jomax

Programmer
Jun 16, 2003
18
US
I have two drop down lists. (not db linked, just hard coded)

One is Country with United States as selected option.

The other is State/Province list with 50 States displayed as default list, as the USA is default Country.

If user selects Canada from Country list, the Provinces dynamically display in State/Province list.

If user selects any other country, the State/Province list is disabled with the words "Not Applicable".

Problem is, when the reset button of my form is clicked and the user had selected a country other than the US or Canada, the State/Province list still displays the disabled "Not Applicable".

Does anyone know how to reset the display to be the default 50 states (the Country drop down list does default back to the USA)

Thanks in advance!

 
I actually found an easy way:

I did a javascript reload page and it works just fine.

Thanks anyway!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top