I have a combo box (<SELECT Name = "Defect" >) and a text box (Name = "txtDefect"). I want to copy the value of the combo box into the text box on change. However, it only transfers the value up to the first space.
The code I use is:
********************************************
<Script Language="VBScript" >
Sub Defect_onChange
theForm.txtDefect.Value = theForm.Defect.Value%
End Sub
</Script>
************************************************
I tried:
*******************
theForm.txtDefect.Value = "<%=theForm.Defect.Value%>"
*********************
but I get an error message: "variable not defined". Defining the variables doesn't help.
Any suggestions.
Charlix
The code I use is:
********************************************
<Script Language="VBScript" >
Sub Defect_onChange
theForm.txtDefect.Value = theForm.Defect.Value%
End Sub
</Script>
************************************************
I tried:
*******************
theForm.txtDefect.Value = "<%=theForm.Defect.Value%>"
*********************
but I get an error message: "variable not defined". Defining the variables doesn't help.
Any suggestions.
Charlix