egrodsky
05-10-2003, 10:37 PM
I have coded a simple list of 4 choices as follows:
<td width="100" valign="top" rowspan="4" height="88">
<select name="csvalidate" size="4">
<option>HTML
<option>CSS
<option>CGI
<option>JavaScript
</select>
</td>
In a function I placed the following:
item_index = document.order.csvalidate.selectedIndex;
if (item_index = 3) .....
The problem I am having is that I cannot get item_index to be evaluated correctly. It doesn't appear to obtain the value that it should. I have checked documentation everywhere and I appear to be following what should be done.
Any comments are greatly appreciated,
TIA,
Ed
<td width="100" valign="top" rowspan="4" height="88">
<select name="csvalidate" size="4">
<option>HTML
<option>CSS
<option>CGI
<option>JavaScript
</select>
</td>
In a function I placed the following:
item_index = document.order.csvalidate.selectedIndex;
if (item_index = 3) .....
The problem I am having is that I cannot get item_index to be evaluated correctly. It doesn't appear to obtain the value that it should. I have checked documentation everywhere and I appear to be following what should be done.
Any comments are greatly appreciated,
TIA,
Ed