I have something like the following:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<HTTP>
<HEAD>
</HEAD>
<BODY>
<FORM name="f1" id="f1">
<SELECT name="field1" id="field1" onchange='L1()'>
<option value="C">Corn
<option value="W">Wheat
<option value="S" selected>Soybeans
<option value="R">Rye
</SELECT>
<INPUT name="field2" id="field2"></INPUT>
</FORM>
<script language='VBScript'>
<!--
Sub L1()
f1.field2.value = f1.field1.value
End Sub
-->
</script>
</BODY>
</HTTP>
When a selection is made, this loads the value ("W" for Wheat) into the field2. I need it to load the text (Wheat) into the second field.
(In the live application, the combo box is loaded from a recordset.)
Is there any way to reference the text value of the combo box?
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<HTTP>
<HEAD>
</HEAD>
<BODY>
<FORM name="f1" id="f1">
<SELECT name="field1" id="field1" onchange='L1()'>
<option value="C">Corn
<option value="W">Wheat
<option value="S" selected>Soybeans
<option value="R">Rye
</SELECT>
<INPUT name="field2" id="field2"></INPUT>
</FORM>
<script language='VBScript'>
<!--
Sub L1()
f1.field2.value = f1.field1.value
End Sub
-->
</script>
</BODY>
</HTTP>
When a selection is made, this loads the value ("W" for Wheat) into the field2. I need it to load the text (Wheat) into the second field.
(In the live application, the combo box is loaded from a recordset.)
Is there any way to reference the text value of the combo box?