代码
function Change(first,second)
{
var index=first.selectedIndex;
if(index<0)
{
alert("请选择项!");
return;
}
else
{
var val=first.options[index].value;
var text=first.options[index].text;
first.options.remove(index);
second.options.add(new Option(text,val));
}
}
{
var index=first.selectedIndex;
if(index<0)
{
alert("请选择项!");
return;
}
else
{
var val=first.options[index].value;
var text=first.options[index].text;
first.options.remove(index);
second.options.add(new Option(text,val));
}
}