求助!
//更新下拉列表function updateOptions(eSelect,ids,names){
//清空下拉框
eSelect.length=0;
var iLength = ids.length ;
var iLoop = 0;
eSelect.options[0]=new Option("","");
for(iLoop=0;iLoop<iLength;iLoop++){
var id = ids[iLoop];
var name = names[iLoop];
eSelect.options[eSelect.length]=new Option(name,id);
}
}
eSelect=document.getElementsByName("cityId");
它提示eSelect.length=0; 尚未实现?
有经验的帮解决下