|
<script type="text/javascript">
function a(p)
{
var arrays=new Array();
arrays["上海"]=["卢湾区","淞沪","内环"];
arrays["北京"]=["卢湾区","淞沪","内环"];
arrays["江西"]=["卢湾区","淞沪","内环"];
arrays["湖北"]=["卢湾区","淞沪","内环"];
document.getElementById("diqu").length=0;
for(var diquIndex in arrays[p])
{
var c=new Option(arrays[p][diquIndex]);
document.getElementById("diqu").options.add(c);
}
}
function b(a)
{
var arrays=new Array();
arrays["卢湾区"]=["卢湾区","淞沪","内环"];
arrays["淞沪"]=["卢湾区","淞沪","内环"];
arrays["内环"]=["卢湾区","淞沪","内环"];
arrays["卢湾"]=["卢湾区","淞沪","内环"];
document.getElementById("dizhi").length=0;
for(var diquIndex in arrays[a])
{
var s=new Option(arrays[a][dizhiIndex]);
document.getElementById("dizhi").options.add(s);
}
}
</script>
这是我的二级联,就是三级联我不知道该怎么做?求组
|
|