<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script type="text/javascript" language="javascript">
function Clik() {
var oldSelect = document.getElementById("oldSelect");
for (var i = 0; i < oldSelect.options.length; i++) {
if (oldSelect.options[i].selected) {
var newSelect = document.getElementById("newSelect");
newSelect.appendChild(oldSelect.options[i]);
}
}
alert( oldSelect.options[oldSelect.options.length-1].value);
}
</script>
</head>
<body>
<select id="oldSelect" size="11" style=" 150px; overflow:hidden;" name="mysel" multiple="multiple">
<option >aaa001</option>
<option>aaa002</option>
<option>aaa003</option>
<option>aaa004</option>
<option>aaa005</option>
<option>aaa006</option>
<option>aaa007</option>
<option>aaa008</option>
<option>aaa009</option>
<option>aaa010</option>
<option>aaa011</option>
</select>
<input value=">>>>" type="button" id="btnmove" onclick="Clik()" />
<select id="newSelect" size="11" style=" 150px; overflow:hidden;" name="mysel" multiple="multiple">
</select>
</body>
</html>
编辑器加载中...