=0; i--){ var option = selectSrc.childNodes[i]; if(option.selected == true){ selectSrc.removeChild(option); option.selected=false; selectDest.appendChild(option); } } } function moveSelected1(selectSrc,selectDest){ var options1 = selectSrc.getElementsByTagName("option"); for(var i=options1.length-1;i>=0;i--){ var option = options1[i]; if(option.selected == true){ selectSrc.removeChild(option); option.selected=false; selectDest.appendChild(option); } } } function moveSelectedAll(selectSrc,selectDest){ var options1 = selectSrc.getElementsByTagName("option"); for(var i=options1.length-1;i>=0;i--){ var option = options1[i]; selectSrc.removeChild(option); option.selected=false; selectDest.appendChild(option); } } // --> 添加 删除 修改 打印 " onClick="moveSelected1(document.getElementById('se lect1'),document.getElementById('select2'))"/> >" onClick="moveSelectedAll(document.getElementById(' select1'),document.getElementById('select2'))"/>
权限移动
最新推荐文章于 2024-03-12 08:47:55 发布