function changeCity()
{
<wbr>var cityList = new Array();<wbr><br><wbr>cityList['广东省']=['广州','深圳','珠海','汕头','韶关','佛山','江门','湛江','茂名','肇庆','惠州','梅州','汕尾','河源','阳江','清远','东莞','中山','潮州','揭阳','云浮'];<wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><br><wbr>cityList['辽宁省']=['沈阳','大连','鞍山','抚顺','本溪','丹东','锦州','营口','阜新','辽阳','盘锦','铁岭','朝阳','葫芦岛'];<br><wbr>cityList['吉林省']=['长春','吉林','四平','辽源','通化','白山','松原','白城','延边'];<wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><br><wbr>cityList['黑龙江省']=['哈尔滨','齐齐哈尔','鸡西','鹤岗','双鸭山','大庆','伊春','佳木斯','七台河','牡丹江','黑河','绥化','大兴安岭'];<br><wbr>cityList['天津省']=['和平区','河东区','河西区','南开区','河北区','红桥区','塘沽区','汉沽区','大港区','西青区','东丽区','津南区','北辰区','武清县','宝坻县','宁河县'];<br><wbr>cityList['北京市']=['西城区','东城区','宣武区','崇文区','海淀区','朝阳区','丰台区','石景山区','通州区','昌平区','大兴区','顺义区','房山区','门头沟区','平谷区','怀柔区','密云县','延庆县'];<wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><br><wbr>cityList['河北省']=['石家庄','唐山','秦皇岛','邯郸','邢台','保定','张家口','承德','沧州','廊坊','衡水'];<br><wbr>cityList['山西省']=['太原','大同','阳泉','长治','晋城','朔州','晋中','运城','忻州','临汾','吕梁'];<br><wbr>cityList['上海市']=['黄浦区','卢湾区','徐汇区','长宁区','静安区','普陀区','闸北区','虹口区','杨浦区','浦东新区','闵行区','宝山区','嘉定区','金山区','松江区','青浦区','南汇区','奉贤区','崇明县'];<br><wbr>cityList['江苏省']=['南京','无锡','徐州','常州','苏州','南通','连云港','淮安','盐城','扬州','镇江','泰州','宿迁'];<br><wbr>cityList['浙江省']=['杭州','宁波','温州','嘉兴','湖州','绍兴','金华','衢州','舟山','台州','丽水'<br> ];<br><wbr>cityList['安徽省']=['合肥','芜湖','蚌埠','淮南','马鞍山','淮北','铜陵','安庆','黄山','滁州','阜阳','宿州','巢湖','六安','亳州','池州','宣城'];<br><wbr>cityList['福建省']=['福州','厦门','莆田','三明','泉州','漳州','南平','龙岩','宁德'];<br><wbr>cityList['江西省']=['南昌','景德镇','萍乡','九江','新余','鹰潭','赣州','吉安','宜春','抚州','上饶'];<br><wbr>cityList['山东省']=['济南','青岛','淄博','枣庄','东营','烟台','潍坊','威海','济宁','泰安','日照','莱芜','临沂','德州','聊城','滨州','菏泽'];<br><wbr>cityList['河南省']=['郑州','开封','洛阳','平顶山','焦作','鹤壁','新乡','安阳','濮阳','许昌','漯河','三门峡','南阳','商丘','信阳','周口','驻马店'];<br><wbr>cityList['湖北省']=['武汉','黄石','襄樊','十堰','荆州','宜昌','荆门','鄂州','孝感','黄冈','咸宁','随州','恩施'];<br><wbr>cityList['湖南省']=['长沙','株洲','湘潭','衡阳','邵阳','岳阳','常德','张家界','益阳','郴州','永州','怀化','娄底','湘西'];<br><wbr>cityList['海南省']=['海口','三亚'];<br><wbr>cityList['重庆市']=['双桥区','大渡口','渝中区','九龙坡','南岸区','渝北区','江北区','沙坪坝','涪陵区','北碚区','璧山县','永川区','巴南区','长寿区','南川区','铜梁县','江津区','荣昌县','万州区','合川区'];<br><wbr>cityList['四川省']=['成都','自贡','攀枝花','泸州','德阳','绵阳','广元','遂宁','内江','乐山','南充','宜宾','广安','达州','眉山','雅安','巴中','资阳','阿坝','甘孜','凉山'];<br><wbr>cityList['贵州省']=['贵阳','六盘水','遵义','安顺','铜仁','毕节','黔西南','黔东南','黔南'];<br><wbr>cityList['云南省']=['昆明','曲靖','玉溪','保山','昭通','丽江','普洱','临沧','文山','红河','西双版纳','楚雄','大理','德宏','怒江','迪庆'];<br><wbr>cityList['陕西省']=['西安','铜川','宝鸡','咸阳','渭南','延安','汉中','榆林','安康','商洛'];<br><wbr>cityList['甘肃省']=['兰州','嘉峪关','金昌','白银','天水','武威','张掖','平凉','酒泉','庆阳','定西','陇南','临夏','甘南'];<br><wbr>cityList['青海省']=['西宁','海东','海北','黄南','海南','果洛','玉树','海西'];<br><wbr>cityList['新疆维吾尔自治区']=['乌鲁木齐','克拉玛依','吐鲁番','哈密','和田','阿克苏','喀什','克孜勒苏柯尔克孜','巴音郭楞蒙古昌吉','博尔塔拉蒙古','伊犁哈萨克','塔城','阿勒泰'];<br><wbr>cityList['宁夏回族自治区']=['银川','石嘴山','吴忠','固原','中卫'];<br><wbr>cityList['西藏自治区']=['拉萨','昌都','山南','日喀则','那曲','阿里','林芝'];<br><wbr>cityList['广西壮族自治区']=['南宁','柳州','桂林','梧州','北海','防城港','钦州','贵港','玉林','百色','贺州','河池','来宾','崇左'];<br><wbr>cityList['内蒙古自治区']=['呼和浩特','包头','乌海','赤峰','通辽','鄂尔多斯','呼伦贝尔','巴彦淖尔','乌兰察布','兴安','锡林郭勒','阿拉善'];<br><wbr>var pIndex = document.landform.Province.value; //获取选中省份的值<br><wbr>var Mytest;<br><wbr>document.landform.city.options.length=0; //执行前清空城市列表<br><wbr>for(var j in cityList[pIndex]){<br><wbr>Mytest = new Option(cityList[pIndex][j], cityList[pIndex][j]); //创建城市项<br><wbr>document.landform.city.options.add(Mytest); //添加到城市下拉列表集合内<br><wbr>}<br></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr>
}
<wbr></wbr>
<wbr></wbr>
<wbr></wbr>
<wbr></wbr>
<wbr></wbr>
省份:<select name="province" id="province" onchange="changeCity()">
<option value="广东省">广东省</option><option value="辽宁省">辽宁省</option><option value="吉林省">吉林省</option><option value="黑龙江省">黑龙江省</option><option value="天津省">天津省</option><option value="北京市">北京市</option><option value="河北省">河北省</option><option value="山西省">山西省</option><option value="上海市">上海市</option><option value="江苏省">江苏省</option><option value="浙江省">浙江省</option><option value="安徽省">安徽省</option><option value="福建省">福建省</option><option value="江西省">江西省</option><option value="山东省">山东省</option><option value="河南省">河南省</option><option value="湖北省">湖北省</option><option value="湖南省">湖南省</option><option value="海南省">海南省</option><option value="重庆市">重庆市</option><option value="四川省">四川省</option><option value="贵州省">贵州省</option><option value="云南省">云南省</option><option value="陕西省">陕西省</option><option value="甘肃省">甘肃省</option><option value="青海省">青海省</option><option value="新疆维吾尔自治区">新疆维吾尔自治区</option><option value="宁夏回族自治区">宁夏回族自治区</option><option value="西藏自治区">西藏自治区</option><option value="广西壮族自治区">广西壮族自治区</option><option value="内蒙古自治区">内蒙古自治区</option></select>
城市:<select name="city" id="city"></select>
<wbr></wbr>