87,922
社区成员
发帖
与我相关
我的任务
分享
if (province.length> 0) {
//县列表
for (var i = 0; i < TopnodeList[0].childNodes.length; i++) {
var id = dropElement2.options[0].value;
//默认为第一个城市的第一个县列表
city = province[childnodeindex].getElementsByTagName("county");
var option1 = document.createElement("option");
option1.value = city[i].getAttribute("name");
option1.text = city[i].getAttribute("name");
if (v3 == option1.value) {
option1.selected = true;
}
this.document.getElementById(witchid + "cc").add(option1);
alert();
}
}
if (province.length> 0) {
//县列表
for (var i = 0; i < TopnodeList[0].childNodes.length; i++) {
var id = dropElement2.options[0].value;
//默认为第一个城市的第一个县列表
city = province[childnodeindex].getElementsByTagName("county");
var option1 = document.createElement("option");
option1.value = city[i].getAttribute("name");
option1.text = city[i].getAttribute("name");
if (v3 == option1.value) {
option1.selected = true;
}
this.document.getElementById(witchid + "cc").add(option1);
}
alert();
}