formname.selectname.remove(formname.selectname.selectedIndex)

解决方案 »

  1.   


    //从left下拉框中将选中的项加入right下拉框中
    function moveto(left,right)
    {
     var i;
     i=left.selectedIndex;
     if (i==-1)
     {
      alert("请选择信息!");
     return false;
     }
     var ooption=document.createElement("OPTION");
     ooption.text=left.options(i).text;
     ooption.value=left.options(i).value;
     right.add(ooption);
     left.remove(i);  
    }
    上面两位的都可以,我给个又能删又能加的给你吧
      

  2.   

    //faint 竟然是JBuilder显示的问题……
      

  3.   

    document.all.selectmaila.options.length = 0
    删除所有