表单上有
<SELECT NAME="gys" id="gys" >
...
</select>
选择后点下面的连接,这么把gys的值赋给连接中的参数??
<a href="select_sp.asp?xh=<%=i%>&gys=<%=gys%>" style="color:red" target=_black>
要求是表单不提交 谢谢
------解决方案--------------------
- HTML code
<body>
<SELECT NAME="gys" id="gys" >
<option value="1">a</option>
<option value="2">b</option>
</select>
<a href="select_sp.asp" style="color:red" target="_blank" onmousedown="ch(this)">11111</a>
<script language="javascript">
ch = function(obj){
var g = document.getElementById("gys");
obj.href = obj.href + "?xh=" + g.value +"&gys=" + g.options[g.selectedIndex].text;
var aaa;
}
</script>
</body>