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

assigning drop down the text value

Status
Not open for further replies.

DarwinIT

Programmer
Apr 25, 2008
142
0
0
US
I have hidden fields which contain data which can be imported into other visible text fields if a checkbox is checked.
The click calls a javascript function which has this code. (asp.net page)

f.<%=ddlCountry.ClientID%>.value = f.<%=hidCountry.ClientID%>.value;
f.<%=ddlState.ClientID%>.value = f.<%=hidState.ClientID%>.value;

This works fine for the state because I have the value of - for example SD for South Dakota. However for the country - I only have the full name such as Iraq or United States etc. How can I tweak the country assignment to make the value update to the value in my hidden field for country???
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top