javascript對ListBox的增或者是刪
假設有
選中lbLeft裡的項添加到lbRight裡:
function add()
{
var left;
var right;
left = document
right = document
for(var i=
{
if(left
{
//判斷該項是否已經存在
for(j=
{
if(right
{
return;
}
}
right
}
}
}
[
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20665.html