I am using a javascript function
<script language="JavaScript">
function myOnChangeDept() {
var list = document.frmDept.selectDepartments;
var listValue = list.options[list.selectedIndex].value;
window.location.href = "view.asp?ID="+listValue;
}
</script>
and calling it at
<input type="submit" name="Submit" value="Submit" onclick="myOnChangeDept()">
but it is not working, this just reloads itself and thats it.
Any ideas?
Qasim
<script language="JavaScript">
function myOnChangeDept() {
var list = document.frmDept.selectDepartments;
var listValue = list.options[list.selectedIndex].value;
window.location.href = "view.asp?ID="+listValue;
}
</script>
and calling it at
<input type="submit" name="Submit" value="Submit" onclick="myOnChangeDept()">
but it is not working, this just reloads itself and thats it.
Any ideas?
Qasim