select列表内容交换的js实现代码 时间:2020-05-12 人气:0 <script language="javascript" type="text/javascript"> function move(formObj,toObj){ if(formObj.selectedIndex != -1){ toObj.add(new Option(formObj.options[formObj.selectedIndex].text,formObj.options[formObj.selectedIndex].value)); formObj.remove(formObj.selectedIndex); //var index = formObj.selectedIndex; } } </script> item1 item2 item3 item4 item5 test1 test2 test3 test4 test5 [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行] 加载全部内容