station1.onchange = Station1_OnChange;
// 响应事件
function Station1_OnChange(){
station2.options.length = station1.options.length - station1.selectedIndex - 1;
for(idx = station1.selectedIndex; idx < station1.options.length; idx ++){
station2.options[idx - station1.selectedIndex].value = station1.options[idx].value;
station2.options[idx - station1.selectedIndex].text = station1.options[idx].text;
}
}
// 响应事件
function Station1_OnChange(){
station2.options.length = station1.options.length - station1.selectedIndex - 1;
for(idx = station1.selectedIndex; idx < station1.options.length; idx ++){
station2.options[idx - station1.selectedIndex].value = station1.options[idx].value;
station2.options[idx - station1.selectedIndex].text = station1.options[idx].text;
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货