如何在不刷新页面的情况下,让超链接取到下拉菜单的值? 请问当选中下来菜单的一个选项后,如何在不刷新页面的情况下让超链接取到下拉菜单的值传递到下一页? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <select onchange="document.location.href='next.asp?aaa='+this.value"></select> ..那就<select onchange="document.location.href='\''+this.value + '\''"><option value='www.baidu.com'>baidu</option></select> 下班前一贴:)<html><head></head><script> function go(obj){ var a1=document.getElementById("a1"); alert(a1.href); a1.href=obj.value; alert(a1.href); }</script><body ><a href="*.html" id="a1">click me</a><br><select onchange="go(this)"> <option value="www.baidu.com">百度</option> <option value="www.google.com">谷歌 </option></select></body></html> <body><table border='1' id='t1'><tr> <td onclick="document.getElementsByTagName('a')[0].href=this.innerText;alert(document.getElementsByTagName('a')[0].href);">http://www.google.com</td> <td> </td> <td> </td> <td> </td></tr><tr> <td> </td> <td> </td> <td> </td> <td> </td></tr></table><a href="#">do</a><script language="JavaScript"><!--//alert(document.getElementsByTagName('a')[0].href);//--></script></body> //下拉菜单跟超链接没关系,超链接的参数是根据下拉菜单的值取得!那还是这样子啊~<select onchange="document.location.href='next.asp?aaa='+this.value"></select>-_- 如何在Myeclipse下运行javascript文件 能说明你的Javascript技术很烂的五个原因 如何判断文本框输入的字符是不是数字? 郁闷了几天的问题 !高手进 jquery 操作checkbox问题 怎样实现对浏览器窗口边框的透明? 如何在Javascript中调用jsp变量 怎样去除执行window.close()后弹出的‘是否关闭窗口’对话框 求证EasyUI的执行效率 求助~bootStrapTable 怎样才能同时初始化两个表格? 怎么用JS实现表单中文本框个数的统计 请好心的帮帮我啊 我已经没分了!!!
</select>
<select onchange="document.location.href='\''+this.value + '\''">
<option value='www.baidu.com'>baidu</option>
</select>
<html>
<head></head>
<script>
function go(obj){ var a1=document.getElementById("a1");
alert(a1.href);
a1.href=obj.value;
alert(a1.href);
}
</script>
<body >
<a href="*.html" id="a1">click me</a>
<br>
<select onchange="go(this)">
<option value="www.baidu.com">百度</option>
<option value="www.google.com">谷歌 </option>
</select>
</body>
</html>
<table border='1' id='t1'>
<tr>
<td onclick="document.getElementsByTagName('a')[0].href=this.innerText;alert(document.getElementsByTagName('a')[0].href);">http://www.google.com</td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
<a href="#">do</a>
<script language="JavaScript">
<!--
//alert(document.getElementsByTagName('a')[0].href);
//-->
</script>
</body>
</select>-_-