2008-06-27
同步页面上多个select的值
关键字: 同步页面上多个select的值同步页面上多个select的值
<html>
<script language="JavaScript" type="text/JavaScript">
function synchronous(sr,des){
alert("dd");
des.selectedIndex =sr.selectedIndex;
}
</script>
<form name ="form1">
<select name="select1" onchange="javascript:synchronous(select1,select2);">
<option value="-1">全部</option>
<option value="1">计算机</option>
<option value="2">金融</option>
</select>
<select name="select2" onchange="javacript:synchronous(select2,select1);">
<option value="-1">全部</option>
<option value="1">计算机</option>
<option value="2">金融</option>
</select>
</form>
</html>
发表评论
- 浏览: 18740 次

- 详细资料
搜索本博客
最近加入圈子
链接
最新评论
-
左外连接,右外连接,全连 ...
呵,受教了,以前学过,也明白了,但好长时间不用就忘了,主要是语法,以后再也不忘了 ...
-- by song218888 -
myeclipse hibernate spri ...
,真是太感谢你了,对我这初学者真是有莫大的帮助啊!!!
-- by zbmartin






评论排行榜