您现在的位置是:首页 >

用Javascript实现ListBox的增或者是删[2]

火烧 2022-09-17 17:18:46 1039
用Java cri t实现Li tBox的增或者是删[2]   删除l Right里的项  fu ctio del   {   right=docume t getEleme tById l Righ

用Javascript实现ListBox的增或者是删[2]  

  删除lbRight里的项

用Javascript实现ListBox的增或者是删[2]

  function del()  {   right=document getElementById( lbRight );   for(i=right length ;i>= ;i )   {    if(right options[i] selected)    {     right remove(i);    }   }   //重新赋值   for(j= ;j<right length;j++)   {    document getElementById( txtAllName ) value+=right options[j] text+ ;    document getElementById( txtAllID ) value+=right options[j] value+ ;   }  }

lishixinzhi/Article/program/Java/JSP/201311/20666  
永远跟党走
  • 如果你觉得本站很棒,可以通过扫码支付打赏哦!

    • 微信收款码
    • 支付宝收款码