62,046
社区成员
发帖
与我相关
我的任务
分享
<html>
<head>
<title>da</title>
<script language="javascript" type="text/javascript">
function _do8(obj) {
if (obj.id == "dd1") {
document.getElementById("dd2").selectedIndex = obj.selectedIndex;
}
if (obj.id == "dd2") {
document.getElementById("dd1").selectedIndex = obj.selectedIndex;
}
}
</script>
</head>
<body>
<select id="dd1" onchange="_do8(this)">
<option value="001">美元 </option>
<option value="002" selected="selected">RMB </option>
<option value="003">日元 </option>
</select>
<select id="dd2" onchange="_do8(this)">
<option value="001">美元 </option>
<option value="002" selected="selected">RMB </option>
<option value="003">日元 </option>
</select>
</body>
</html>
<html>
<head>
<title>da</title>
<script language="javascript" type="text/javascript">
function _do8(obj) {
if (obj.id == "dd1") {
document.getElementById("dd2").selectedIndex = obj.selectedIndex;
}
if (obj.id == "dd2") {
document.getElementById("dd1").selectedIndex = obj.selectedIndex;
}
}
</script>
</head>
<body>
<select id="dd1" onchange="do8(this)">
<option value="001">美元 </option>
<option value="002" selected="selected">RMB </option>
<option value="003">日元 </option>
</select>
<select id="dd2" onchange="do8(this)">
<option value="001">美元 </option>
<option value="002" selected="selected">RMB </option>
<option value="003">日元 </option>
</select>
</body>
</html>