看看是这意思不
function addrmb(){
var first=document.getElementById("first");
var second=document.getElementById("second");
var testf=document.getElementsByName("testf");
var tests=document.getElementsByName("tests");
var res = abc(first.value,document.getElementById("second").getElementsByTagName("option"));
// alert(res);
if(first.value != "" && res){
var o = new Option();
o.text = first.value;
second.add(o);
}
}
function delrmb(){
var second=document.getElementById("second");
second.remove(second.selectedIndex)
}
function abc(a,obj){
var arr = new Array();
for (var i=0;i
}
for(var j=0;j
return false;
}
}
return true;
}}
您是想把第一个下拉框内容增加到第二个下拉框吗????