您现在的位置是:首页
>
用Javascript实现ListBox的增或者是删[2]
用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]](http://img.zhputi.com/uploads/1fae/1fae6b7f12cc9ce22665d2d1aa7a6fad17205.jpg)
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 很赞哦! (1039)