请帮分析一下错在哪??
代码如下(自己试着写的):<form method="POST" action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" U-File="E:\gongzhang\_private\form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" -->
<table border="1" width="100%" id="table1">
<tr>
<td><select size="1" name="D1" onchange="x=this.options[this.selectedIndex].value">
<option value="1">aaa</option>
<option value="2">bbb</option>
</select></td>
<td> </td>
</tr>
<% if x="1" then %>
<tr>
<td>dddddddd </td>
<td>qqqqqqqq </td>
</tr>
<% end if %>
<% if x="2" then %>
<tr>
<td>5555555 </td>
<td>666666 </td>
</tr>
<% end if %>
</table>
<p><input type="submit" value="提交" name="B1"><input type="reset" value="重置" name="B2"></p>
</form>
请问onchange事件能这样将列表项的value传给一个变量吗?如果能,我这样用变量对不对??