How do I change the value of a selection box off a client side click event?
Here's the condensed view of the selection wraped in the form.
Response.Write "<form name=modify action=track2k.asp method=post>"
Response.Write "<Select name=WorkChoice >"
Response.Write "<Option value='NA'>NA</Option>"
Response.Write "<Option value='Modify'>Modify</Option>"
Response.Write "</Select>"
Response.Write "<input type=button value='Select All' name=selector onclick=changeall()>"
Response.Write "</form>"
Here's my attemp at changing the selection from the buttons click event client side.
<SCRIPT LANGUAGE="VBScript">
<!--
Sub changeall()
document.modify.WorkChoice.selected.value = "Modify"
End Sub
-->
</SCRIPT>
Thanks for looking at this.
Henry
Here's the condensed view of the selection wraped in the form.
Response.Write "<form name=modify action=track2k.asp method=post>"
Response.Write "<Select name=WorkChoice >"
Response.Write "<Option value='NA'>NA</Option>"
Response.Write "<Option value='Modify'>Modify</Option>"
Response.Write "</Select>"
Response.Write "<input type=button value='Select All' name=selector onclick=changeall()>"
Response.Write "</form>"
Here's my attemp at changing the selection from the buttons click event client side.
<SCRIPT LANGUAGE="VBScript">
<!--
Sub changeall()
document.modify.WorkChoice.selected.value = "Modify"
End Sub
-->
</SCRIPT>
Thanks for looking at this.
Henry