Hi all,
I'm trying to use the following script:
<script language="javaS cript">
function setrepto(){
document.aForm. repno.value =
document.aForm. rep.options[document.aForm. rep.selectedInd ex].value;
}
</script>
On the following form (Partly in asp):
<form name="aForm">
<select name="rep" OnChange="setre pto();">
<option value="ALL">Sel ect a Rep Here</option>
<%
while not slsrs.eof
repno = slsrs("SLS#")
repname = slsrs("SLSNAM") %>
<option value="<%=repno %>"><%=repname% ></option>
<%slsrs.movenex t
wend%>
</select>
</form>
To change the value of 'repno' in the following href, which is on the
same page:
<a href="nextpage. asp?rep=<%=repn o%>">Click here</a>
So basically, as a user changes the selection, the value of repno in
the above href should change.
Can't get it to work. Can anyone help?
TIA,
Paul
I'm trying to use the following script:
<script language="javaS cript">
function setrepto(){
document.aForm. repno.value =
document.aForm. rep.options[document.aForm. rep.selectedInd ex].value;
}
</script>
On the following form (Partly in asp):
<form name="aForm">
<select name="rep" OnChange="setre pto();">
<option value="ALL">Sel ect a Rep Here</option>
<%
while not slsrs.eof
repno = slsrs("SLS#")
repname = slsrs("SLSNAM") %>
<option value="<%=repno %>"><%=repname% ></option>
<%slsrs.movenex t
wend%>
</select>
</form>
To change the value of 'repno' in the following href, which is on the
same page:
<a href="nextpage. asp?rep=<%=repn o%>">Click here</a>
So basically, as a user changes the selection, the value of repno in
the above href should change.
Can't get it to work. Can anyone help?
TIA,
Paul
Comment