function changeCity()
{
//alert("aa");
var cityList=new Array();
cityList['空']=['请选择城市'];
cityList['湖北']=['请选择城市','武汉','宜昌','荆州'];
cityList['湖南']=['请选择城市','长沙','湘潭','怀化'];
cityList['江西']=['请选择城市','南昌','赣州','宜春'];
var index=document.myForm.por.value;//当pro改变时,获取pro选中的value
document.myForm.city.options.length=0;
for(var i in cityList[index])//遍历pro选中的value锁对应的数组
document.myForm.city.options.add(new Option(cityList[index][i],cityList[index][i]));//向city中添加选项,
选项为(数组[省份名][数组下标])
}
>