代码
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));
             }
           
        }

 

posted on 2010-01-18 13:35  fxh嘟嘟  阅读(222)  评论(0编辑  收藏  举报