Hi!
I have a combo box (in asp) on a form. when the user selects a choice from the combo box, I want to store that value in a variable. Any suggestions would be greatly appreciated!
Code for combo box -
<font face="Tahoma" size="2">User Name: </font>
<%CmdUserName="SELECT PAName FROM Tbl_PATable ORDER BY PAName"
SET RsUserNameCombo=CreditCardDb.execute(CmdUserName)%>
<select name="ComboUserName" onClick="onChangeEvent2()"><option></option>
<%DO WHILE NOT RsUserNameCombo.eof%>
<option value="<%=RsUserNameCombo.Fields("PAName")%>" name="UserNameComboBox"><%=Trim(RsUserNameCombo.Fields("PAName"))%></option>
<%RsUserNameCombo.movenext
LOOP%></select></center><br>
Code for function -
<!--FUNCTION TO ASSIGN USER NAME CHOSEN-->
<script language="javascript">
function onChangeEvent2()
{
lvNameChosen = ????????????????????
</script>
I have a combo box (in asp) on a form. when the user selects a choice from the combo box, I want to store that value in a variable. Any suggestions would be greatly appreciated!
Code for combo box -
<font face="Tahoma" size="2">User Name: </font>
<%CmdUserName="SELECT PAName FROM Tbl_PATable ORDER BY PAName"
SET RsUserNameCombo=CreditCardDb.execute(CmdUserName)%>
<select name="ComboUserName" onClick="onChangeEvent2()"><option></option>
<%DO WHILE NOT RsUserNameCombo.eof%>
<option value="<%=RsUserNameCombo.Fields("PAName")%>" name="UserNameComboBox"><%=Trim(RsUserNameCombo.Fields("PAName"))%></option>
<%RsUserNameCombo.movenext
LOOP%></select></center><br>
Code for function -
<!--FUNCTION TO ASSIGN USER NAME CHOSEN-->
<script language="javascript">
function onChangeEvent2()
{
lvNameChosen = ????????????????????
</script>