昆山培训java

你可以用AJAX来实现。

我这里有一个javascript的例子:

这是一个名为pro_city_district.js的脚本:

Var CityList = ["北京"、"上海"、"广州"、"深圳"、"南京"、"苏州"、"无锡"、"杭州"、"厦门"、"青岛"、"武汉"、"天津"、"济南"、"重庆"、"成都]。

var DisList = new Array();

DisList[“其他”] = [“无锡”、“昆山”、“大连”、“珠海”、“郑州”、“徐州”、“贵阳”、“昆明”、“太原”、“烟台”、“南昌”、“常州”、“海口”、“扬州”。

DisList[“北京”] = [“东城区”、“西城区”、“崇文区”、“宣武区”、“朝阳区”、“海淀区”、“丰台区”、“石景山区”、“房山区”、“通州区”、“顺义区”、“门头沟区”。

DisList[“上海”] = [“黄浦区”、“卢湾区”、“徐汇区”、“长宁区”、“静安区”、“普陀区”、“闸北区”、“虹口区”、“杨浦区”、“宝山区”、“闵行区”、“嘉定区”。

DisList["天津"] = ["和平区"、"河东区"、"河西区"、"南开区"、"河北区"、"红桥区"、"塘沽区"、"汉沽区"、"大港区"、"东丽区"、"西青区"、"北辰区"

DisList["重庆"] = ["渝中区"、"大渡口区"、"江北区"、"沙坪坝区"、"九龙坡区"、"南岸区"、"北碚区"、"万盛区"、"双桥区"、"渝北区"、"巴南区"、"万州区"。

DisList["义乌"] = ["市区","其他"];

DisList["石家庄"] = ["长安区"、"桥东区"、"桥西区"、"新华区"、"裕华区"、"井陉矿区"、"其他"];

DisList["唐山"] = ["路北区"、"路南区"、"古冶区"、"开平区"、"丰南区"、"丰润区"、"其他"];

DisList[“秦皇岛”] = [“海港区”、“山海关区”、“北戴河区”、“其他”];

DisList["邯郸"] = ["丛台区"、"复兴区"、"邯山区"、"其他"];

DisList["邢台"] = ["桥东区"、"桥西区"、"其他"];

DisList["保定"] = ["新城区"、"南部城区"、"北部城区"、"其他"];

DisList["张家口"] = ["桥西区"、"桥东区"、"宣化区"、"其他"];

DisList[“承德”] = [“双桥区”、“双滦区”、“其他”];

DisList["沧州"] = ["运河区"、"新华区"、"其他"];

DisList["廊坊"] = ["安次区"、"广阳区"、"其他"];

DisList["衡水"] = ["桃城区","其他"];

DisList["太原"] = ["杏花岭区"、"小店区"、"迎泽区"、"尖草坪区"、"万柏林区"、"晋源区"、"其他"];

DisList[“大同”] = [“市区”、“矿区”、“南郊”、“新荣区”、“其他”];

DisList["阳泉"] = ["市区"、"矿区"、"其他"];

DisList[“长治”] = [“市区”、“其他”];

DisList["晋城"] = ["市区","其他"];

DisList[“朔州”] = [“朔城区”、“平陆区”、“其他”];

DisList["晋中"] = ["榆次区","其他"];

DisList["新洲"] = ["新抚区","其他"];

DisList["临汾"] = ["尧都区","其他"];

DisList["运城"] = ["盐湖区","其他"];

DisList["吕梁"] = ["离石区","其他"];

DisList["呼和浩特"] = ["回民区"、"玉泉区"、"新城区"、"赛罕区"、"其他"];

DisList["包头"] = ["昆都仑区"、"青山区"、"东河区"、"九原区"、"石拐区"、"白云矿区"、"其他"];

DisList["乌海"] = ["海勃湾区"、"乌达区"、"海南区"、"其他"];

DisList["赤峰"] = ["红山区"、"元宝山区"、"松山区"、"其他"];

DisList["通辽"] = ["科尔沁区","其他"];

DisList["鄂尔多斯"] = ["东胜区","其他"];

DisList["呼伦贝尔"] = ["海拉尔区","其他"];

DisList["乌兰察布"] = ["集宁区","其他"];

DisList["巴彦淖尔"] = ["临河区","其他"];

DisList["沈阳"] = ["沈河区"、"皇姑区"、"和平区"、"大东区"、"铁西区"、"苏家屯区"、"东陵区"、"新城子区"、"于洪区"、"其他"];

DisList["大连"] = ["西岗区"、"中山区"、"沙河口区"、"甘井子区"、"旅顺口区"、"金州区"、"开发区"、"其他"];

DisList["鞍山"] = ["铁东区"、"铁西区"、"立山区"、"千山区"、"其他"];

DisList["抚顺"] = ["新抚区"、"东洲区"、"王华区"、"顺城区"、"其他"];

DisList["本溪"] = ["平山区"、"名山区"、"西湖区"、"南芬区"、"其他"];

DisList["丹东"] = ["振兴区"、"元宝区"、"振安区"、"其他"];

DisList["锦州"] = ["太和区"、"古塔区"、"凌河区"、"其他"];

DisList["葫芦岛"] = ["龙岗区"、"南票区"、"连山区"、"其他"];

DisList["营口"] = ["站前区"、"西市区"、"鲅鱼圈区"、"老边区"、"其他"];

DisList["盘锦"] = ["双台子区"、"兴隆台区"、"其他"];

DisList["阜新"] = ["海州区"、"新邱区"、"太平区"、"清河门区"、"细河区"、"其他"];

DisList["辽阳"] = ["白塔区"、"文圣区"、"宏伟区"、"太子河区"、"弓长岭区"、"其他"];

DisList["铁岭"] = ["银州区"、"清河区"、"其他"];

DisList["朝阳"] = ["双塔区"、"龙城区"、"其他"];

DisList["长春"] = ["朝阳区"、"宽城区"、"二道区"、"南关区"、"绿园区"、"双阳区"、"其他"];

DisList[“吉林”] = [“船营”、“昌邑区”、“龙潭区”、“丰满区”、“其他”];

DisList[“四平”] = [“铁西区”、“铁东区”、“其他”];

DisList["辽源"] = ["龙山区"、" Xi安区"、"其他"];

DisList[“通化”] = [“东昌区”、“二道江区”、“其他”];

DisList["白山"] = ["八道江区","其他"];

DisList["松原"] = ["宁江区","其他"];

DisList["白城"] = ["洮北区","其他"];

DisList[“延吉”] = [“市区”、“其他”];

DisList["哈尔滨"] = ["道里区"、"南岗区"、"动力区"、"平房区"、"香坊区"、"松北区"、"呼兰区"、"道外区"、"其他"];

DisList["齐齐哈尔"] = ["龙沙区"、"昂昂溪区"、"铁锋区"、"建华区"、"富拉尔基区"、"碾子山区"、"其他"];

DisList["鹤岗"] = ["兴山区"、"工农区"、"南山区"、"兴安区"、"向阳区"、"东山区"、"其他"];

DisList["双鸭山"] = ["尖山区"、"岭东区"、"四方台区"、"宝山区"、"其他"];

DisList["鸡西"] = ["鸡冠区"、"横山区"、"城子河区"、"滴道区"、"梨树区"、"马山区"、"其他"];

DisList["大庆"] = ["萨尔图区"、"红岗区"、"龙凤区"、"让胡路区"、"大同区"、"其他"];

DisList[“伊春”] = [“伊春区”、“其他”];

DisList["牡丹江"] = ["爱民区"、"东安区"、"阳明区"、" Xi安区"、"其他"];

DisList["佳木斯"] = ["前进区"、"永红区"、"向阳区"、"东风区"、"其他"];

DisList["七台河"] = ["桃山区"、"新兴区"、"茄子河区"、"其他"];

DisList["黑河"] = ["爱辉区","其他"];

DisList["绥化"] = ["北林区","其他"];

DisList["南京"] = ["玄武区"、"鼓楼区"、"建邺区"、"白下区"、"秦淮区"、"下关区"、"雨花台区"、"浦口区"、"栖霞区"、"大场区"、"其他"]。

DisList["徐州"] = ["云龙区"、"鼓楼区"、"九里区"、"贾汪区"、"泉山区"、"其他"];

DisList["连云港"] = ["新浦区"、"连云区"、"海州区"、"其他"];

DisList["淮安"] = ["清河区"、"清浦区"、"楚州区"、"淮阴区"、"其他"];

DisList["宿迁"] = ["宿城区","其他"];

DisList[“盐城”] = [“市区”、“其他”];

DisList["扬州"] = ["广陵区"、"未央区"、"邗江区"、"其他"];

DisList[“泰州”] = [“海陵区”、“高港区”、“其他”];

DisList[“南通”] = [“崇川区”、“港闸区”、“其他”];

DisList[“镇江”] = [“京口区”、“润州区”、“其他”];

DisList["常州"] = ["钟楼区"、"天宁区"、"戚墅堰区"、"其他"];

DisList["无锡"] = ["崇安区"、"北塘区"、"南长区"、"锡山区"、"惠山区"、"滨湖区"、"其他"];

DisList["苏州"] = ["沧浪区"、"金阊区"、"平江区"、"虎丘区"、"吴中区"、"相城区"、"工业园区"、"昆山市"、"其他"];

DisList["杭州"] = ["拱墅区"、"西湖区"、"上城区"、"下城区"、"江干区"、"滨江区"、"余杭区"、"萧山区"、"其他"];

DisList["宁波"] = ["海曙区"、"江东区"、"江北区"、"镇海区"、"北仑区"、"鄞州区"、"其他"];

DisList["温州"] = ["鹿城区"、"龙湾区"、"瓯海区"、"其他"];

DisList[“嘉兴”] = [“秀城区”、“秀洲区”、“其他”];

DisList[“湖州”] = [“吴兴区”、“南浔区”、“其他”];

DisList["绍兴"] = ["越城区","其他"];

DisList[“金华”] = [“婺城区”、“靳东区”、“其他”];

DisList[“衢州”] = [“柯城区”、“衢江区”、“其他”];

DisList[“舟山”] = [“定海区”、“普陀区”、“其他”];

DisList["台州"] = ["椒江区"、"黄岩区"、"路桥区"、"其他"];

DisList["丽水"] = ["莲都","其他"];

DisList["合肥"] = ["庐阳区"、"瑶海区"、"蜀山区"、"包河区"、"其他"];

DisList["芜湖"] = ["镜湖区"、"吴昕区"、"马塘区"、"鸠江区"、"其他"];

DisList["蚌埠"] = ["中心城"、"东城"、"西城"、"其他"];

DisList["淮南"] = ["田家庵区"、"大同区"、"谢家集区"、"八公山区"、"潘集区"、"其他"];

DisList["马鞍山"] = ["雨山区"、"华山区"、"金家庄区"、"其他"];

DisList[“淮北”] = [“香山”、“杜集”、“烈山”、“其他”];

DisList["铜陵"] = ["铜官山区"、"狮子山区"、"其他"];

DisList["安庆"] = ["迎江区"、"大观区"、"其他"];

DisList["黄山"] = ["屯溪区"、"黄山区"、"徽州区"、"其他"];

DisList["滁州"] = ["琅琊区"、"南谯区"、"其他"];

DisList["阜阳"] = ["颍州区"、"颍东区"、"颍泉区"、"其他"];

DisList["苏州"] = ["埇桥区","其他"];

DisList["巢湖"] = ["居巢区","其他"];

DisList["六安"] = ["金安区"、"裕安区"、"其他"];

DisList["亳州"] = ["谯城区","其他"];

DisList["宣城"] = ["宣州区","其他"];

DisList["池州"] = ["贵池区","其他"];

DisList["福州"] = ["鼓楼区"、"台江区"、"仓山区"、"马尾区"、"晋安区"、"其他"];

DisList["厦门"] = ["集美区"、"海沧区"、"思明区"、"湖里区"、"同安区"、"翔安区"、"其他"];

DisList[“三明”] = [“梅列区”、“三元区”、“其他”];

DisList["莆田"] = ["城厢区"、"涵江区"、"荔城区"、"秀屿区"、"其他"];

DisList["泉州"] = ["鲤城区"、"丰泽区"、"洛江区"、"泉港区"、"晋安区"、"其他"];

DisList["漳州"] = ["芗城区"、"龙文区"、"其他"];

DisList["南平"] = ["延平区","其他"];

DisList["宁德"] = ["蕉城区","其他"];

DisList["南昌"] = ["东湖区"、"西湖区"、"青云谱区"、"湾里区"、"青山湖区"、"其他"];

DisList["景德镇"] = ["珠山区"、"昌江区"、"其他"];

DisList["萍乡"] = ["安源区"、"湘东区"、"其他"];

DisList["新余"] = ["渝水区","其他"];

DisList[“九江”] = [“浔阳区”、“庐山区”、“其他”];

DisList["鹰潭"] = ["月湖区","其他"];

DisList["赣州"] = ["章贡区","其他"];

DisList[“吉安”] = [“吉州区”、“青原区”、“其他”];

DisList["宜春"] = ["袁州区","其他"];

DisList[“抚州”] = [“临川区”、“其他”];

DisList["上饶"] = ["信州区","其他"];

DisList["济南"] = ["市中区"、"历下区"、"天桥区"、"槐荫区"、"历城区"、"长清区"、"其他"];

DisList["青岛"] = ["市南区"、"市北区"、"城阳区"、"四方区"、"李沧区"、"黄岛区"、"崂山区"、"其他"];

DisList["淄博"] = ["张店区"、"临淄区"、"淄川区"、"博山区"、"周村区"、"其他"];

DisList["枣庄"] = ["市中区"、"山亭"、"峄城区"、"台儿庄区"、"薛城区"、"其他"];

DisList["东营"] = ["东营区"、"河口区"、"其他"];

DisList["潍坊"] = ["潍城区"、"寒亭区"、"坊子区"、"奎文区"、"其他"];

DisList["烟台"] = ["芝罘区"、"福山区"、"牟平区"、"莱山"、"其他"];

DisList["威海"] = ["环翠区","其他"];

DisList[“济宁”] = [“市区”、“任城区”、“其他”];

DisList["泰安"] = ["泰山区"、"岱岳区"、"其他"];

DisList["日照"] = ["东港区","其他"];

DisList[“莱芜”] = [“莱城区”、“钢城区”、“其他”];

DisList["德州"] = ["德城区","其他"];

DisList["临沂"] = ["兰山区"、"罗庄"、"河东区"、"其他"];

DisList["聊城"] = ["东昌府区","其他"];

DisList["滨州"] = ["滨城区","其他"];

DisList[“菏泽”] = [“牡丹区”、“其他”];

DisList["郑州"] = ["中原区"、"金水区"、"二七区"、"管城回族区"、"尚洁区"、"邙山区"、"其他"];

DisList["开封"] = ["鼓楼区"、"龙亭区"、"顺河区"、"南关区"、"其他"];

DisList["洛阳"] = ["西工区"、"老城区"、"涧西区"、"瀍河回族区"、"洛龙区"、"吉利区"、"其他"];

DisList["平顶山"] = ["新华区"、"卫东区"、"湛河区"、"石龙区"、"其他"];

DisList["焦作"] = ["解放区"、"中站区"、"马村区"、"山阳区"、"其他"];

DisList["鹤壁"] = ["淇滨区"、"山城区"、"鹤山区"、"其他"];

DisList["新乡"] = ["新华区"、"红旗区"、"北站区"、"其他"];

DisList["安阳"] = ["北关区"、"文峰区"、"殷都区"、"龙安区"、"其他"];

DisList["濮阳"] = ["华龙区","其他"];

DisList["许昌"] = ["魏都区","其他"];

DisList["漯河"] = ["源汇区"、"郾城区"、"召陵区"、"其他"];

DisList["三门峡"] = ["湖滨区","其他"];

DisList["南阳"] = ["卧龙区"、"宛城区"、"其他"];

DisList["商丘"] = ["梁园区"、"睢阳区"、"其他"];

DisList[“信阳”] = [“浉河区”、“平桥区”、“其他”];

DisList["周口"] = ["川汇区","其他"];

DisList["驻马店"] = ["驿城区","其他"];

DisList["武汉"] = ["江岸区"、"武昌区"、"江汉区"、"硚口区"、"汉阳区"、"青山区"、"洪山区"、"东西湖区"、"汉南区"、"蔡甸区"、"江夏区"、"黄陂区"。

DisList["黄石"] = ["黄石港区"、"石灰窑区"、"登陆区"、"铁山区"、"其他"];

DisList["襄樊"] = ["襄城区"、"樊城区"、"襄阳区"、"其他"];

DisList["十堰"] = ["张湾区"、"茅箭区"、"其他"];

DisList["荆州"] = ["沙市区"、"荆州区"、"其他"];

DisList["宜昌"] = ["西陵区"、"伍家岗区"、"点军区"、"猇亭区"、"夷陵区"、"其他"];

DisList["荆门"] = ["东宝区"、"掇刀区"、"其他"];

DisList["鄂州"] = ["鄂城区"、"华容区"、"梁子湖区"、"其他"];

DisList["孝感"] = ["孝南区","其他"];

DisList["黄冈"] = ["黄州区","其他"];

DisList["咸宁"] = ["咸安区","其他"];

DisList["随州"] = ["曾都区","其他"];

DisList["长沙"] = ["岳麓区"、"芙蓉区"、"天心区"、"开福区"、"雨花区"、"其他"];

DisList["株洲"] = ["天元区"、"荷塘区"、"芦淞区"、"石峰区"、"其他"];

DisList[“湘潭”] = [“雨湖区”、“岳塘区”、“其他”];

DisList["衡阳"] = ["石鼓区"、"雁峰区"、"珠晖区"、"蒸湘区"、"南岳区"、"其他"];

DisList["邵阳"] = ["双清区"、"大祥区"、"北塔区"、"其他"];

DisList["岳阳"] = ["岳阳楼区"、"君山区"、"云溪区"、"其他"];

DisList["常德"] = ["武陵区"、"鼎城区"、"其他"];

DisList["张家界"] = ["永定县","武陵源区","其他"];

DisList["益阳"] = ["赫山区"、"资阳区"、"其他"];

DisList["郴州"] = ["北湖区"、"苏仙区"、"其他"];

DisList["永州"] = ["冷水滩区"、"山治区"、"其他"];

DisList["怀化"] = ["鹤城区","其他"];

DisList["娄底"] = ["娄星区","其他"];

DisList[“吉首”] = [“市区”、“其他”];

DisList["广州"] = ["越秀区"、"东山区"、"海珠区"、"荔湾区"、"天河区"、"白云区"、"黄埔区"、"芳村区"、"花都区"、"番禺区"、"其他"];

DisList["深圳"] = ["福田区"、"罗湖区"、"南山区"、"宝安区"、"龙岗区"、"盐田区"、"其他"];

DisList["珠海"] = ["香洲区"、"斗门区"、"金湾区"、"其他"];

DisList["汕头"] = ["潮阳区"、"潮南区"、"澄海区"、"濠江区"、"金平区"、"龙湖区"、"其他"];

DisList["韶关"] = ["北江区"、"浈江区"、"武江区"、"其他"];

DisList["河源"] = ["源城区","其他"];

DisList["梅州"] = ["梅江区","其他"];

DisList["惠州"] = ["惠城区","其他"];

DisList["汕尾"] = ["市区","其他"];

DisList["东莞"] = ["市区","其他"];

DisList[“中山”] = [“市区”、“其他”];

DisList["江门"] = ["江海区"、"蓬江区"、"新会区"、"其他"];

DisList["佛山"] = ["顺德区"、"南海区"、"三水区"、"高明区"、"禅城区"、"其他"];

DisList["阳江"] = ["江城区","其他"];

DisList["湛江"] = ["赤坎区"、"霞山区"、"坡头区"、"麻章区"、"其他"];

DisList[“茂名”] = [“茂南区”、“茂港区”、“其他”];

DisList["肇庆"] = ["端州区"、"鼎湖区"、"其他"];

DisList["清远"] = ["清城区","其他"];

DisList["潮州"] = ["湘桥区","其他"];

DisList["揭阳"] = ["榕城区","其他"];

DisList["云浮"] = ["云城区","其他"];

DisList["南宁"] = ["新城区"、"兴宁区"、"永新区"、"城北区"、"江南区"、"高新区"、"其他"];

DisList["柳州"] = ["城中区"、"鱼峰区"、"刘备区"、"柳南区"、"其他"];

DisList["桂林"] = ["秀峰区"、"叠彩区"、"象山区"、"七星区"、"雁山区"、"其他"];

DisList["五洲"] = ["万秀区"、"叠山区"、"其他"];

DisList["北海"] = ["海城区"、"银海区"、"铁山港区"、"其他"];

DisList["防城港"] = ["港区"、"防城区"、"其他"];

DisList["钦州"] = ["钦南区"、"钦北区"、"其他"];

DisList["贵港"] = ["港北区"、"港南区"、"其他"];

DisList["玉林"] = ["玉州区","其他"];

DisList["海口"] = ["秀英区"、"龙华区"、"琼山区"、"美兰区"、"其他"];

DisList["三亚"] = ["市区","其他"];

DisList[“儋州”] = [“市区”、“其他”];

DisList["五指山"] = ["市区","其他"];

DisList[“琼海”] = [“市区”、“其他”];

DisList["成都"] = ["青羊区"、"锦江区"、"金牛区"、"武侯区"、"成华区"、"龙泉驿区"、"青白江区"、"新都区"、"其他"];

DisList["自贡"] = ["金奎大区"、"自流井区"、"贡井区"、"沿滩区"、"其他"];

DisList["攀枝花"] = ["东"、"西"、"仁和"、"其他"];

DisList["泸州"] = ["江阳区"、"纳溪区"、"龙马潭区"、"其他"];

DisList["德阳"] = ["旌阳区","其他"];

DisList[“绵阳”] = [“涪城区”、“游仙区”、“其他”];

DisList["广元"] = ["市中区"、"元坝区"、"朝天区"、"其他"];

DisList["遂宁"] = ["市区","其他"];

DisList["内江"] = ["市中区"、"东兴区"、"其他"];

DisList["乐山"] = ["市中区"、"五通桥区"、"沙湾区"、"金口河区"、"其他"];

DisList["南充"] = ["顺庆区"、"高坪区"、"嘉陵区"、"其他"];

DisList["宜宾"] = ["翠屏区","其他"];

DisList["广安"] = ["广安区","其他"];

DisList["达州"] = ["通川区","其他"];

DisList["巴中"] = ["巴州区","其他"];

DisList["雅安"] = ["雨城区","其他"];

DisList["眉山"] = ["东坡区","其他"];

DisList["资阳"] = ["雁江区","其他"];

DisList["贵阳"] = ["南明区"、"云岩区"、"花溪区"、"乌当区"、"白云区"、"小河区"、"其他"];

DisList["六盘水"] = ["钟山区","其他"];

DisList["遵义"] = ["红花岗区","其他"];

DisList["安顺"] = ["西秀区","其他"];

DisList["昆明"] = ["盘龙区"、"五华区"、"官渡区"、"西山区"、"东川区"、"其他"];

DisList["曲靖"] = ["麒麟区","其他"];

DisList["玉溪"] = ["红塔区","其他"];

DisList["宝山"] = ["隆阳区","其他"];

DisList["昭通"] = ["昭阳区","其他"];

DisList["思茅"] = ["翠云区","其他"];

DisList["丽江"] = ["古镇","其他"];

DisList["大理"] = ["市区","其他"];

DisList["拉萨"] = ["城关区","其他"];

DisList[“Xi安”] = [“莲湖区”、“新城区”、“碑林区”、“雁塔区”、“灞桥区”、“未央区”、“阎良区”、“临潼区”、“其他”];

DisList["铜川"] = ["王一区"、"银泰区"、"其他"];

DisList[“宝鸡”] = [“渭滨区”、“金台区”、“其他”];

DisList["咸阳"] = ["秦都区"、"渭城区"、"杨凌区"、"其他"];

DisList["渭南"] = ["临渭区","其他"];

DisList["延安"] = ["宝塔区","其他"];

DisList["汉中"] = ["汉台区","其他"];

DisList["榆林"] = ["榆阳区","其他"];

DisList["安康"] = ["汉滨区","其他"];

DisList["商洛"] = ["商州区","其他"];

DisList["兰州"] = ["城关区"、"七里河区"、"西固区"、"安宁区"、"红古区"、"其他"];

DisList["金昌"] = ["金川区","其他"];

DisList["银"] = ["银区"、"平川区"、"其他"];

DisList[“天水”] = [“秦城区”、“北道区”、“其他”];

DisList["嘉峪关"] = ["市区","其他"];

DisList["武威"] = ["凉州区","其他"];

DisList["定西"] = ["定西区","其他"];

DisList["平凉"] = ["崆峒区","其他"];

DisList["庆阳"] = ["西峰区","其他"];

DisList["张掖"] = ["甘州区","其他"];

DisList["酒泉"] = ["肃州区","其他"];

DisList["银川"] = ["西夏区"、"金凤区"、"兴庆区"、"其他"];

DisList["石嘴山"] = ["大武口区"、"惠农区"、"石潭井区"、"其他"];

DisList["吴中"] = ["利通区","其他"];

DisList["固原"] = ["原州区","其他"];

DisList["昆山"] = ["昆山市","其他"];

DisList["西宁"] = ["城中区"、"城东区"、"城西区"、"城北区"、"其他"];

DisList["乌鲁木齐"] = ["天山区"、"沙依巴克区"、"新城区"、"水磨沟区"、"头屯河区"、"达坂城区"、"东山区"、"其他"];

DisList["克拉玛依"] = ["克拉玛依区"、"独山子区"、"白碱滩区"、"乌尔禾区"、"其他"];

功能移除选项(选项菜单)

{

I = option menu . options . length;

while(I & gt;=0){

option menu . options . remove(I);

I-;

}

}

功能添加选项(选项列表,选项菜单)

{

var I = 0;

remove options(option menu);

选项菜单。options [0] = new option("请选择","请选择");

for(I = 0;我& ltoptionList.lengthi++)

Option menu . options[I+1]= new Option(Option list[I],Option list[I]);

}

功能添加选项2(选项列表,选项菜单)

{

var I = 0;

remove options(option menu);

选项菜单。options[0]= new option(" unlimited ","无限制");

for(I = 0;我& ltoptionList.lengthi++)

Option menu . options[I+1]= new Option(Option list[I],Option list[I]);

}

首先引用:

& ltSCRIPT language = JavaScript src = " pro _ city _ district . js " type = text/JavaScript & gt;& lt/SCRIPT & gt;

以下称为:

& ltselect class = " select 1 " name = " city " id = " city " onChange = " add options(DisList[this . value],document . form 1 . district)" & gt;

& ltOption value = " city " selected & gt城市

& lt脚本& gt

//生成所有城市的名称

for(var I = 0;我& ltCityList.lengthi++)

document . writeln(" & lt;选项值= \ "+city list[I]+" \ " >+city list[I]+" & lt;/option >;");

& lt/script & gt;

& lt/select & gt;& ltselect class = " select 1 " name = " district " id = " district " >

& ltOption value = " area " selected & gt地区

& lt/select & gt;