On Apr 20, 7:27 am, antiiner...@gmail.com wrote:
> How does one find the value of a drop down in Internet Explorer?
>
> The form below works in Firefox and Safari. But not in Internet
> Explorer. Can someone tell me how to code this so IE understands it?
>
> <script language="javascript">
The language attribute is deprecated, type is required.
> function copyDescription() {
>
> document.myForm.Description.value=document.myForm. MakeDescription.value}
Since your options don't have value attributes but do have text
attributes, you can use:
document.myForm.Description.value=document.myForm. MakeDescription.text;
Why doesn't IE follow the W3C spec? Dunno.
>
> </script>
>
> <form name="myForm" id="myForm">
> <SELECT name="MakeDescription" onChange="copyDescription();">
> <OPTION selected value="">Choose</OPTION>
> <OPTION>A</OPTION>
> <OPTION>B</OPTION>
> <OPTION>C</OPTION>
> </SELECT>
> <br /><br />
> <input name="Description" id="Description" type="text" />
> </form>
--
Rob
|