打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
两个SELECT互相传值

<!doctype html public "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="gb2312">
<head>
<title> new document </title>
<meta http-equiv="content-type" content="text/html;" />
<meta name="generator" content="editplus" />
<meta name="author" content="cnlei,枫岩,www.cnlei.net" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<link type="text/css" rel="stylesheet" href="" />
</head>
<script type="text/javascript">
 <!--
function Mv(a,b) {
var i = 0;
var f=document.getElementById(a);
var t=document.getElementById(b);
for(var i=0; i<f.options.length; i++) {
if(f.options[i].selected ) {
var no = new Option();
no.value = f.options[i].value;
no.text = f.options[i].text;
t.options[t.options.length] = no;}
}
Rv(a);
}

function Rv(o) {
var o=document.getElementById(o);
for(var i=o.options.length-1; i>=0; i--) {
if(o.options[i].selected && o.options[i] != "") {
 o.options[i].value = "";
 o.options[i].text = "";
 o.options[i] = null;
 }
}
}
-->
</script>
<body>
<table id="MovOpTB" cellspacing="0" cellpadding="0">
<tr>
  <td class="slt"><strong class="norTit">我的联系人</strong><br /><select id="SltAddrA" class="SltBar" name="" size="12"  multiple="true">
    <option value="1">CNLei01 <test@test.com></option>
    <option value="2">CNLei02 <test@test.com></option>
    <option value="5">CNLei05 <test@test.com></option>
    <option value="7">CNLei07 <test@test.com></option>
    <option value="9">CNLei09 <test@test.com></option>
    <option value="9">CNLei10 <test@test.com></option>
    <option value="11">CNLei11 <test@test.com></option>
  </select>
  </td>
  <td class="btn"><input type="button" class="BtnA2w" name="" value=">>>" onclick="Mv(‘SltAddrA‘,‘SltAddrB‘);" /><br /><br /><input type="button" class="BtnB2w" name="" value="<<<" onclick="Mv(‘SltAddrB‘,‘SltAddrA‘);" /></td>
  <td class="slt"><strong class="norTit">列表成员</strong><br /><select id="SltAddrB" class="SltBar" name="" size="12" multiple="true">
    <option value="">CNLei03 <test@test.com></option>
    <option value="">CNLei04 <test@test.com></option>
    <option value="">CNLei08 <test@test.com></option>
  </select></td>
</tr>
</table>
</body>
</html>

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
单引号,双引号,javascript,HTML,转义字符
Javascript 沒有 OO?是你不知道 OO 是什麼吧
javascript据option的value值快速设定初始的selected选项--做最好的JavaScript中文站点
jquery select option 多种颜色
html中select标签(下拉列表)的详细介绍
Html 中Select 下拉列表跳转
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服