I'm programming in Visual Studio 2005.
I have an web page with an HTML (not ASP HTML) dropdownlist object.
I can't use 'runat=server' on the dropdownlist because it contains literals
and Microsoft won't accept them.
I want to return the value of the dropdownlist to the ASP server.
To do this, I'm trying to store the value of the dropdownlist in a hidden text field.
The dropdownlist HTML looks like this (not showing entire list)
<SELECT id=ddlCountry size=1 name=country_origin onchange='storeValue(this)'
Style="z-index: 130; left: 416px; position: absolute; top: 328px">
<OPTGROUP label="North American Countries">
<OPTION value="United States">United
The hidden text field is:
<input id="hdnCountry" style="z-index: 131; left: 288px; position: absolute; top: 464px"
The script that I'm running in the onchange event of the dropdownlist is:
document.getElmentById('hdnCountry').value = what.value
When I select a value from the dropdownlist, I get the following error in the
Java script: Microsoft JScript runtime error: Object doesn't support this property or method
Much thanks to anyone who can help.