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???
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???