J
john woo
Hi
I got a question in a form. that's:
<TABLE WIDTH="100%" BORDER=0><TD align="Left" width="19%" >
<select name="DEPARTMENT" SIZE ="1" style="width:200px;"
onChange="Change()">
<option value="0"> <ALL>
<option value="1000012" >Food Sales
....
</select>
</TD>
<FORM name="InputForm" id="InputForm" method="post" action="url">
<INPUT TYPE="HIDDEN" NAME="DEPARTMENT" VALUE="">
function Change()
{
var selIndex = document.InputForm.DEPARTMENT.selectedIndex;
alert("****" + selIndex + "***");
var selValue =
document.InputForm.DEPARTMENT.options[selIndex].value;
the question is, why the pop up message always says ***undefined***
whenever a change to the selection?
It should indentify the selected index, right?
Can any one point it out?
I got a question in a form. that's:
<TABLE WIDTH="100%" BORDER=0><TD align="Left" width="19%" >
<select name="DEPARTMENT" SIZE ="1" style="width:200px;"
onChange="Change()">
<option value="0"> <ALL>
<option value="1000012" >Food Sales
....
</select>
</TD>
<FORM name="InputForm" id="InputForm" method="post" action="url">
<INPUT TYPE="HIDDEN" NAME="DEPARTMENT" VALUE="">
function Change()
{
var selIndex = document.InputForm.DEPARTMENT.selectedIndex;
alert("****" + selIndex + "***");
var selValue =
document.InputForm.DEPARTMENT.options[selIndex].value;
the question is, why the pop up message always says ***undefined***
whenever a change to the selection?
It should indentify the selected index, right?
Can any one point it out?