选择下拉列表后,如何动态改变地址栏参数
HTML code
<form action="?aaa=<%=request("xmid")%>&yue=<%=request.form("nianyue")%>" method="post" name="yue">
<select onChange="javascript:this.form.submit()" name="nianyue" id="select">
<option>1</option>
<option>2</option>
<option>3</option>
</select>
</form>
现在的代码,要第二次选择后 才会变成上次选择的值,如何修改啊,另外选择后,要默认显示选择的选项
------解决方案--------------------
<form action="?aaa=<%=request("xmid")%>&yue=<%=request.form("nianyue")%>" method="post" name="yue">
<select onChange="javascript:location.href='?aaa=<%=request("xmid")%>&yue='+this.options[this.selectedIndex].value" name="nianyue" id="select">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
<input type="submit" name="button" id="button" value="提交" />
</form>
这样就可以了。