var subcat = new Array();
subcat[0]=new Array("1","密云县","51");
subcat[1]=new Array("1","延庆县","52");
subcat[2]=new Array("2","上海市所有地区","2");
subcat[3]=new Array("2","黄浦区","53");
subcat[4]=new Array("2","卢湾区","54");
……省略的代码……
var city = document.getElementById("AID");
for(i = 0; i < subcat.length; i++)
{
if (subcat[i][0] == "2") city.options[city.length] = new Option(subcat[i][1], subcat[i][2]);
}
求助:上面红色部分的代码用jQuery写的话,要怎么写呢?谢谢!
Qyouu
慕姐4208626
慕虎7371278
相关分类