<form name="companyForm" action="" method="post">
所属省份:
<select id="shengid" name="shengid" class="input01" onChange="changelocation(document.companyForm.shengid.options[document.companyForm.shengid.selectedIndex].value)" >
<option selected="selected" value="0">请选择省份</option>
<option value="2">北京市</option>
<option value="1">安徽省</option>
<option value="3">山东省</option>
<option value="4">江苏省</option>
<option selected value="5">上海市</option>
<option value="6">广东省</option>
<option value="7">浙江省</option>
<option value="8">福建省</option>
<option value="9">重庆市</option>
<option value="10">甘肃省</option>
<option value="11">广西</option>
<option value="12">贵州省</option>
<option value="13">海南省</option>
<option value="14">河北省</option>
<option value="15">河南省</option>
<option value="16">黑龙江省</option>
<option value="17">湖北省</option>
<option value="18">湖南省</option>
<option value="19">江西省</option>
<option value="20">吉林省</option>
<option value="21">辽宁省</option>
<option value="22">内蒙古</option>
<option value="23">宁夏</option>
<option value="24">青海省</option>
<option value="25">山西省</option>
<option value="26">陕西省</option>
<option value="27">四川省</option>
<option value="28">天津市</option>
<option value="29">新疆</option>
<option value="30">西藏</option>
<option value="31">云南省</option>
<option value="32">香港</option>
<option value="33">澳门</option>
<option value="34">台湾</option>
<option value="35">国外与其它</option>
</select>
所属城市:
<select id="Select1" class="input01" name="shiid" style="width: 140px;">
<option></option>
</select>
</form>
<script Language="JavaScript"><!--
var onecount;
onecount=0;
subcat = new Array();
subcat[0] = new Array("玉树藏族自治州","24","430");
subcat[1] = new Array("台湾","34","429");
subcat[2] = new Array("卢湾区","5","428");
subcat[3] = new Array("西宁市","24","427");
subcat[4] = new Array("金山区","5","424");
subcat[5] = new Array("虹口区","5","423");
subcat[6] = new Array("南汇区","5","422");
subcat[7] = new Array("闵行区","5","421");
subcat[8] = new Array("静安区","5","420");
subcat[9] = new Array("嘉定区","5","419");
subcat[10] = new Array("闸北区","5","418");
subcat[11] = new Array("杨浦区","5","417");
subcat[12] = new Array("徐汇区","5","416");
subcat[13] = new Array("松江区","5","415");
subcat[14] = new Array("青浦区","5","414");
subcat[15] = new Array("普陀区","5","413");
subcat[16] = new Array("浦东区","5","412");
subcat[17] = new Array("黄浦区","5","411");
subcat[18] = new Array("奉贤区","5","410");
subcat[19] = new Array("崇明区","5","409");
subcat[20] = new Array("长宁区","5","408");
subcat[21] = new Array("宝山区","5","407");
subcat[22] = new Array("西城区","2","406");
subcat[23] = new Array("通州区","2","405");
subcat[24] = new Array("顺义区","2","404");
subcat[25] = new Array("石景山区","2","403");
subcat[26] = new Array("平谷区","2","402");
subcat[27] = new Array("密云区","2","401");
subcat[28] = new Array("怀柔区","2","400");
subcat[29] = new Array("丰台区","2","399");
subcat[30] = new Array("房山区","2","398");
subcat[31] = new Array("东城区","2","397");
subcat[32] = new Array("大兴区","2","396");
subcat[33] = new Array("崇文区","2","395");
subcat[34] = new Array("朝阳区","2","394");
subcat[35] = new Array("昌平区","2","393");
subcat[36] = new Array("海淀区","2","392");
subcat[37] = new Array("周口市","15","391");
subcat[38] = new Array("蓟 县","28","384");
subcat[39] = new Array("静海县","28","383");
subcat[40] = new Array("宁河县","28","382");
subcat[41] = new Array("宝坻区","28","381");
subcat[42] = new Array("武清区","28","380");
subcat[43] = new Array("北辰区","28","379");
subcat[44] = new Array("津南区","28","378");
subcat[45] = new Array("西青区","28","377");
subcat[46] = new Array("东丽区","28","376");
subcat[47] = new Array("大港区","28","375");
subcat[48] = new Array("汉沽区","28","374");
subcat[49] = new Array("塘沽区","28","373");
subcat[50] = new Array("红桥区","28","372");
subcat[51] = new Array("河北区","28","371");
subcat[52] = new Array("南开区","28","370");
subcat[53] = new Array("河西区","28","369");
subcat[54] = new Array("河东区","28","368");
subcat[55] = new Array("和平区","28","367");
subcat[56] = new Array("天门市","17","365");
subcat[57] = new Array("潜江市","17","364");
subcat[58] = new Array("仙桃市","17","363");
subcat[59] = new Array("中卫市","23","362");
subcat[60] = new Array("儋州市","13","361");
subcat[61] = new Array("东方市","13","360");
subcat[62] = new Array("五指山市","13","359");
subcat[63] = new Array("万宁市","13","358");
subcat[64] = new Array("琼海市","13","357");
subcat[65] = new Array("文昌市","13","356");
subcat[66] = new Array("南川区","9","355");
subcat[67] = new Array("万川区","9","354");
subcat[68] = new Array("济源市","15","353");
subcat[69] = new Array("鄂尔多斯","22","352");
subcat[70] = new Array("通辽","22","351");
subcat[71] = new Array("随州市","17","350");
subcat[72] = new Array("甘孜藏族自治州","27","349");
subcat[73] = new Array("资阳市","27","348");
subcat[74] = new Array("国外与其它","35","347");
subcat[75] = new Array("澳门","33","345");
subcat[76] = new Array("香港","32","344");
subcat[77] = new Array("昭通市","31","343");
subcat[78] = new Array("玉溪市","31","342");
subcat[79] = new Array("红河哈尼族彝族自治州","31","341");
subcat[80] = new Array("文山壮族苗族自治州","31","340");
subcat[81] = new Array("西双版纳傣族自治州","31","339");
subcat[82] = new Array("曲靖市","31","337");
subcat[83] = new Array("怒江傈僳族自治州","31","336");
subcat[84] = new Array("丽江市","31","335");
subcat[85] = new Array("临沧市","31","334");
subcat[86] = new Array("楚雄彝族自治州","31","333");
subcat[87] = new Array("迪庆藏族自治州","31","332");
subcat[88] = new Array("德宏傣族景颇族自治州","31","331");
subcat[89] = new Array("保山市","31","330");
subcat[90] = new Array("东川市","31","329");
subcat[91] = new Array("大理白族自治州","31","328");
subcat[92] = new Array("昆明市","31","327");
subcat[93] = new Array("日喀则地区","30","326");
subcat[94] = new Array("山南地区","30","325");
subcat[95] = new Array("那曲地区","30","324");
subcat[96] = new Array("林芝地区","30","323");
subcat[97] = new Array("昌都地区","30","322");
subcat[98] = new Array("阿里地区","30","321");
subcat[99] = new Array("拉萨市","30","320");
subcat[100] = new Array("石河子市","29","319");
subcat[101] = new Array("伊犁哈萨克自治州","29","318");
subcat[102] = new Array("和田地区","29","316");
subcat[103] = new Array("吐鲁番地区","29","315");
subcat[104] = new Array("塔城地区","29","314");
subcat[105] = new Array("昌吉回族自治州","29","313");
subcat[106] = new Array("博尔塔拉蒙古自治州","29","312");
subcat[107] = new Array("哈密地区","29","311");
subcat[108] = new Array("巴音郭楞蒙古自治州","29","310");
subcat[109] = new Array("阿勒泰地区","29","309");
subcat[110] = new Array("阿克苏地区","29","308");
subcat[111] = new Array("克拉玛依市","29","307");
subcat[112] = new Array("克孜勒苏柯尔克孜自治州","29","306");
subcat[113] = new Array("喀什地区","29","305");
subcat[114] = new Array("乌鲁木齐市","29","304");
subcat[115] = new Array("天津市","28","303");
subcat[116] = new Array("宜宾市","27","302");
subcat[117] = new Array("雅安市","27","301");
subcat[118] = new Array("遂宁市","27","300");
subcat[119] = new Array("绵阳市","27","299");
subcat[120] = new Array("泸州市","27","298");
subcat[121] = new Array("内江市","27","297");
subcat[122] = new Array("南充市","27","296");
subcat[123] = new Array("攀枝花市","27","295");
subcat[124] = new Array("乐山市","27","294");
subcat[125] = new Array("凉山彝族自治州","27","293");
subcat[126] = new Array("广元市","27","292");
subcat[127] = new Array("广安市","27","291");
subcat[128] = new Array("德阳市","27","290");
subcat[129] = new Array("巴中市","27","289");
subcat[130] = new Array("阿坝藏族羌族自治州","27","288");
subcat[131] = new Array("自贡市","27","287");
subcat[132] = new Array("眉山市","27","286");
subcat[133] = new Array("达州市","27","285");
subcat[134] = new Array("成都市","27","284");
subcat[135] = new Array("榆林市","26","283");
subcat[136] = new Array("汉中市","26","282");
subcat[137] = new Array("延安市","26","281");
subcat[138] = new Array("咸阳市","26","280");
subcat[139] = new Array("渭南市","26","279");
subcat[140] = new Array("铜川市","26","278");
subcat[141] = new Array("商洛市","26","277");
subcat[142] = new Array("安康市","26","276");
subcat[143] = new Array("宝鸡市","26","275");
subcat[144] = new Array("西安市","26","274");
subcat[145] = new Array("运城市","25","273");
subcat[146] = new Array("阳泉市","25","272");
subcat[147] = new Array("朔州市","25","271");
subcat[148] = new Array("忻州市","25","270");
subcat[149] = new Array("吕梁市","25","269");
subcat[150] = new Array("临汾市","25","268");
subcat[151] = new Array("长治市","25","267");
subcat[152] = new Array("晋中市","25","266");
subcat[153] = new Array("晋城市","25","265");
subcat[154] = new Array("大同市","25","264");
subcat[155] = new Array("太原市","25","263");
subcat[156] = new Array("海西蒙古族藏族自治州","24","262");
subcat[157] = new Array("果洛藏族自治州","24","261");
subcat[158] = new Array("黄南藏族自治州","24","260");
subcat[159] = new Array("海北藏族自治州","24","259");
subcat[160] = new Array("海南藏族自治州","24","258");
subcat[161] = new Array("海东地区","24","257");
subcat[162] = new Array("吴忠市","23","255");
subcat[163] = new Array("石嘴山市","23","254");
subcat[164] = new Array("固原市","23","253");
subcat[165] = new Array("银川市","23","252");
subcat[166] = new Array("哲里木盟","22","251");
subcat[167] = new Array("伊克昭盟","22","250");
subcat[168] = new Array("呼伦贝尔盟","22","249");
subcat[169] = new Array("锡林郭勒盟","22","248");
subcat[170] = new Array("乌海市","22","247");
subcat[171] = new Array("乌兰察布盟","22","246");
subcat[172] = new Array("兴安盟","22","245");
subcat[173] = new Array("赤峰市","22","244");
subcat[174] = new Array("包头市","22","243");
subcat[175] = new Array("巴彦淖尔盟","22","242");
subcat[176] = new Array("阿拉善盟","22","241");
subcat[177] = new Array("呼和浩特市","22","240");
subcat[178] = new Array("葫芦岛市","21","239");
subcat[179] = new Array("营口市","21","238");
subcat[180] = new Array("铁岭市","21","237");
subcat[181] = new Array("盘锦市","21","236");
subcat[182] = new Array("辽阳市","21","235");
subcat[183] = new Array("朝阳市","21","234");
subcat[184] = new Array("锦州市","21","233");
subcat[185] = new Array("丹东市","21","232");
subcat[186] = new Array("鞍山市","21","231");
subcat[187] = new Array("本溪市","21","230");
subcat[188] = new Array("抚顺市","21","229");
subcat[189] = new Array("阜新市","21","228");
subcat[190] = new Array("大连市","21","227");
subcat[191] = new Array("沈阳市","21","226");
subcat[192] = new Array("延边朝鲜族自治州","20","225");
subcat[193] = new Array("通化市","20","224");
subcat[194] = new Array("松原市","20","223");
subcat[195] = new Array("四平市","20","222");
subcat[196] = new Array("辽源市","20","221");
subcat[197] = new Array("吉林市","20","220");
subcat[198] = new Array("白山市","20","219");
subcat[199] = new Array("白城市","20","218");
subcat[200] = new Array("长春市","20","217");
subcat[201] = new Array("宜春市","19","216");
subcat[202] = new Array("鹰潭市","19","215");
subcat[203] = new Array("上饶市","19","214");
subcat[204] = new Array("新余市","19","213");
subcat[205] = new Array("萍乡市","19","212");
subcat[206] = new Array("九江市","19","211");
subcat[207] = new Array("景德镇市","19","210");
subcat[208] = new Array("吉安市","19","209");
subcat[209] = new Array("赣州市","19","208");
subcat[210] = new Array("抚州市","19","207");
subcat[211] = new Array("南昌市","19","206");
subcat[212] = new Array("张家界市","18","205");
subcat[213] = new Array("株洲市","18","204");
subcat[214] = new Array("岳阳市","18","203");
subcat[215] = new Array("益阳市","18","202");
subcat[216] = new Array("永州市","18","201");
subcat[217] = new Array("衡阳市","18","200");
subcat[218] = new Array("湘西土家族苗族自治州","18","199");
subcat[219] = new Array("湘潭市","18","198");
subcat[220] = new Array("邵阳市","18","197");
subcat[221] = new Array("娄底市","18","196");
subcat[222] = new Array("常德市","18","195");
subcat[223] = new Array("郴州市","18","194");
subcat[224] = new Array("怀化市","18","193");
subcat[225] = new Array("长沙市","18","192");
subcat[226] = new Array("宜昌市","17","191");
subcat[227] = new Array("咸宁市","17","190");
subcat[228] = new Array("襄樊市","17","189");
subcat[229] = new Array("十堰市","17","188");
subcat[230] = new Array("孝感市","17","187");
subcat[231] = new Array("荆州市","17","186");
subcat[232] = new Array("荆门市","17","185");
subcat[233] = new Array("鄂州市","17","184");
subcat[234] = new Array("恩施土家族苗族自治州","17","183");
subcat[235] = new Array("黄石市","17","182");
subcat[236] = new Array("黄冈市","17","181");
subcat[237] = new Array("武汉市","17","180");
subcat[238] = new Array("伊春市","16","179");
subcat[239] = new Array("黑河市","16","178");
subcat[240] = new Array("鹤岗市","16","177");
subcat[241] = new Array("绥化市","16","175");
subcat[242] = new Array("双鸭山市","16","174");
subcat[243] = new Array("七台河市","16","173");
subcat[244] = new Array("齐齐哈尔市","16","172");
subcat[245] = new Array("牡丹江市","16","171");
subcat[246] = new Array("佳木斯市","16","170");
subcat[247] = new Array("鸡西市","16","169");
subcat[248] = new Array("大兴安岭地区","16","168");
subcat[249] = new Array("大庆市","16","167");
subcat[250] = new Array("哈尔滨市","16","166");
subcat[251] = new Array("鹤壁市","15","164");
subcat[252] = new Array("三门峡市","15","163");
subcat[253] = new Array("商丘市","15","162");
subcat[254] = new Array("许昌市","15","161");
subcat[255] = new Array("信阳市","15","160");
subcat[256] = new Array("新乡市","15","159");
subcat[257] = new Array("平顶山市","15","158");
subcat[258] = new Array("南阳市","15","157");
subcat[259] = new Array("漯河市","15","156");
subcat[260] = new Array("濮阳市","15","155");
subcat[261] = new Array("洛阳市","15","154");
subcat[262] = new Array("焦作市","15","153");
subcat[263] = new Array("安阳市","15","152");
subcat[264] = new Array("驻马店市","15","151");
subcat[265] = new Array("开封市","15","150");
subcat[266] = new Array("郑州市","15","149");
subcat[267] = new Array("衡水市","14","148");
subcat[268] = new Array("唐山市","14","147");
subcat[269] = new Array("秦皇岛市","14","146");
subcat[270] = new Array("廊坊市","14","145");
subcat[271] = new Array("承德市","14","144");
subcat[272] = new Array("沧州市","14","143");
subcat[273] = new Array("张家口市","14","142");
subcat[274] = new Array("保定市","14","141");
subcat[275] = new Array("邢台市","14","140");
subcat[276] = new Array("邯郸市","14","139");
subcat[277] = new Array("石家庄市","14","138");
subcat[278] = new Array("海口市","13","137");
subcat[279] = new Array("三亚市","13","136");
subcat[280] = new Array("铜仁地区","12","135");
subcat[281] = new Array("黔西南布依族苗族自治州","12","134");
subcat[282] = new Array("黔南布依族苗族自治州","12","133");
subcat[283] = new Array("黔东南苗族侗族自治州","12","132");
subcat[284] = new Array("六盘水市","12","131");
subcat[285] = new Array("安顺市","12","130");
subcat[286] = new Array("遵义市","12","129");
subcat[287] = new Array("毕节地区","12","128");
subcat[288] = new Array("贵阳市","12","127");
subcat[289] = new Array("贵港市","11","126");
subcat[290] = new Array("玉林市","11","125");
subcat[291] = new Array("河池市","11","124");
subcat[292] = new Array("梧州市","11","123");
subcat[293] = new Array("来宾市","11","122");
subcat[294] = new Array("钦州市","11","121");
subcat[295] = new Array("崇左市","11","120");
subcat[296] = new Array("柳州市","11","119");
subcat[297] = new Array("贺州市","11","118");
subcat[298] = new Array("桂林市","11","117");
subcat[299] = new Array("百色市","11","115");
subcat[300] = new Array("北海市","11","114");
subcat[301] = new Array("防城港市","11","113");
subcat[302] = new Array("南宁市","11","112");
subcat[303] = new Array("张掖市","10","111");
subcat[304] = new Array("武威市","10","110");
subcat[305] = new Array("天水市","10","109");
subcat[306] = new Array("庆阳市","10","108");
subcat[307] = new Array("平凉市","10","107");
subcat[308] = new Array("陇南市","10","106");
subcat[309] = new Array("临夏回族自治州","10","105");
subcat[310] = new Array("酒泉市","10","104");
subcat[311] = new Array("金昌市","10","103");
subcat[312] = new Array("嘉峪关市","10","102");
subcat[313] = new Array("白银市","10","101");
subcat[314] = new Array("定西市","10","100");
subcat[315] = new Array("甘南藏族自治州","10","99");
subcat[316] = new Array("兰州市","10","98");
subcat[317] = new Array("万县市","9","97");
subcat[318] = new Array("黔江地区","9","96");
subcat[319] = new Array("涪陵市","9","95");
subcat[320] = new Array("重庆市","9","94");
subcat[321] = new Array("漳州市","8","93");
subcat[322] = new Array("厦门市","8","92");
subcat[323] = new Array("三明市","8","91");
subcat[324] = new Array("泉州市","8","90");
subcat[325] = new Array("莆田市","8","89");
subcat[326] = new Array("宁德市","8","88");
subcat[327] = new Array("南平市","8","87");
subcat[328] = new Array("龙岩市","8","86");
subcat[329] = new Array("福州市","8","85");
subcat[330] = new Array("湖州市","7","84");
subcat[331] = new Array("舟山市","7","83");
subcat[332] = new Array("温州市","7","82");
subcat[333] = new Array("台州市","7","81");
subcat[334] = new Array("绍兴市","7","80");
subcat[335] = new Array("宁波市","7","79");
subcat[336] = new Array("丽水市","7","78");
subcat[337] = new Array("衢州市","7","77");
subcat[338] = new Array("金华市","7","76");
subcat[339] = new Array("嘉兴市","7","75");
subcat[340] = new Array("杭州市","7","74");
subcat[341] = new Array("江门市","6","73");
subcat[342] = new Array("肇庆市","6","72");
subcat[343] = new Array("湛江市","6","71");
subcat[344] = new Array("珠海市","6","70");
subcat[345] = new Array("中山市","6","69");
subcat[346] = new Array("云浮市","6","68");
subcat[347] = new Array("河源市","6","67");
subcat[348] = new Array("阳江市","6","66");
subcat[349] = new Array("韶关市","6","65");
subcat[350] = new Array("深圳市","6","64");
subcat[351] = new Array("汕尾市","6","63");
subcat[352] = new Array("汕头市","6","62");
subcat[353] = new Array("清远市","6","61");
subcat[354] = new Array("梅州市","6","60");
subcat[355] = new Array("茂名市","6","59");
subcat[356] = new Array("潮州市","6","58");
subcat[357] = new Array("揭阳市","6","57");
subcat[358] = new Array("江门市","6","56");
subcat[359] = new Array("东莞市","6","55");
subcat[360] = new Array("惠州市","6","54");
subcat[361] = new Array("佛山市","6","53");
subcat[362] = new Array("广州市","6","52");
subcat[363] = new Array("上海市","5","51");
subcat[364] = new Array("南京市","4","50");
subcat[365] = new Array("泰州市","4","49");
subcat[366] = new Array("镇江市","4","48");
subcat[367] = new Array("扬州市","4","47");
subcat[368] = new Array("盐城市","4","46");
subcat[369] = new Array("无锡市","4","45");
subcat[370] = new Array("苏州市","4","44");
subcat[371] = new Array("徐州市","4","43");
subcat[372] = new Array("南通市","4","42");
subcat[373] = new Array("连云港市","4","41");
subcat[374] = new Array("常州市","4","40");
subcat[375] = new Array("淮安市","4","39");
subcat[376] = new Array("南京市","4","38");
subcat[377] = new Array("枣庄市","3","37");
subcat[378] = new Array("菏泽市","3","36");
subcat[379] = new Array("烟台市","3","35");
subcat[380] = new Array("潍坊市","3","34");
subcat[381] = new Array("泰安市","3","33");
subcat[382] = new Array("威海市","3","32");
subcat[383] = new Array("日照市","3","31");
subcat[384] = new Array("青岛市","3","30");
subcat[385] = new Array("莱芜市","3","29");
subcat[386] = new Array("临沂市","3","28");
subcat[387] = new Array("聊城市","3","27");
subcat[388] = new Array("济宁市","3","26");
subcat[389] = new Array("德州市","3","25");
subcat[390] = new Array("淄博市","3","24");
subcat[391] = new Array("滨州市","3","23");
subcat[392] = new Array("东营市","3","22");
subcat[393] = new Array("济南市","3","21");
subcat[394] = new Array("亳州市","1","20");
subcat[395] = new Array("铜陵市","1","19");
subcat[396] = new Array("六安市","1","18");
subcat[397] = new Array("黄山市","1","17");
subcat[398] = new Array("淮北市","1","16");
subcat[399] = new Array("阜阳市","1","15");
subcat[400] = new Array("蚌埠市","1","13");
subcat[401] = new Array("宣城市","1","12");
subcat[402] = new Array("宿州市","1","11");
subcat[403] = new Array("马鞍山市","1","10");
subcat[404] = new Array("淮南市","1","9");
subcat[405] = new Array("滁州市","1","8");
subcat[406] = new Array("巢湖市","1","7");
subcat[407] = new Array("安庆市","1","6");
subcat[408] = new Array("北京市","2","4");
subcat[409] = new Array("芜湖市","1","2");
subcat[410] = new Array("合肥市","1","1");
onecount =411;
function changelocation(locationid)
{
document.companyForm.shiid.length = 0;
document.companyForm.shiid.options[0]=new Option('请选择城市','0');
var locationid=locationid;
var i;
for (i=0;i < onecount; i++)
{
if (subcat[i][1] == locationid)
{
document.companyForm.shiid.options[document.companyForm.shiid.length] = new Option(subcat[i][0], subcat[i][2]);
}
}
}
function search(){
var iForm = document.all.companyForm;
var sheng = Trim(iForm.elements['shengid'].value);
var shi = Trim(iForm.elements['shiid'].value);
var key = Trim(iForm.elements['key'].value);
var sql="/website/wdcx.jsp";
if(sheng!=""){
sql=sql+"?sheng="+sheng;
}
if(shi!=""){
sql=sql+"&shi="+shi;
}
if(key!=""){
sql = sql+"&key="+key;
}
iForm.action=sql;
iForm.submit();
}
//--></script>
分享到:
相关推荐
在JavaScript中,我们可以使用事件监听来触发二级菜单的显示和隐藏。例如,我们可以为一级菜单的每个选项添加`click`事件监听器。当监听到点击事件时,通过修改CSS样式来控制二级菜单的可见性。这可以通过切换元素的...
在网页设计中,联动菜单意味着当用户选择某个菜单项时,下一级菜单会根据所选项动态加载,这种效果可以递归到多级菜单,提供良好的用户体验。 首先,我们需要了解DWR的基本原理。DWR的核心功能是能够在浏览器中直接...
在"二级连动无刷新的实现"中,我们主要关注如何在用户做出选择后,不通过页面整体刷新来更新第二个下拉菜单的内容,而是通过异步(通常为AJAX)请求更新数据。 1. **基础概念** - **联动**:联动指的是两个或多个...
本案例中,开发人员选择使用 **JavaScript (JS)** 和 **XML** 来实现省市二级联动下拉框功能。这种方式的优点是不需要服务器端的支持,只需要前端技术就可以完成,因此具有很好的灵活性和轻量性。 #### 三、XML文件...
3. JavaScript实现:在二级连动菜单中,JavaScript主要用于监听菜单项的点击事件,以便在用户交互时动态显示或隐藏对应的二级菜单。 ```javascript document.addEventListener("DOMContentLoaded", function() { ...
- **View**:在Ajax的`success`回调中,前端根据返回的数据更新二级菜单的内容。 4. **服务器端处理:** 以Node.js的Express框架为例,我们可以创建一个路由处理Ajax请求: ```javascript const express = ...
当用户在一级菜单(省份)中选择一个选项时,二级菜单(城市)会动态加载与所选省份相关的城市列表;同理,当用户在二级菜单中选择后,三级菜单(区县)将显示对应城市的区县信息。这种联动机制减少了用户的输入负担...
利用Ajax技术实现多级下拉菜单之间的联动效果,例如在省、市、区的选择中,当用户在一级下拉菜单(如省份)中选择一个选项时,二级下拉菜单(如城市)会自动更新与之相关的选项,用户进一步选择城市后,三级下拉菜单...
本文将详细介绍一个名为“最新的阿里巴巴全国城市三级连动的Js源码”的项目,旨在帮助开发者理解和掌握如何实现全国城市数据的三级联动效果。 首先,我们要理解什么是“三级联动”。在Web开发中,联动指的是一个...
"纯JS地区选择 三级 下拉框 连动选择"是一个典型的任务,它涉及到JavaScript(JS)的使用来实现一个动态的、三级联动的地区选择下拉菜单。这个功能在许多网站上都很常见,比如在线购物平台、快递跟踪系统或个人信息...
使用JavaScript来监听一级菜单的变化,并根据选择项动态更新二级菜单的内容。这里会用到事件监听和DOM操作的相关技术。 ```javascript document.getElementById('menu1').addEventListener('change', function() { ...
在UI设计中,三级联动指的是三个下拉菜单之间存在依赖关系:当用户在一个下拉菜单中选择一个选项时,第二个下拉菜单会根据前者的选值动态更新其选项;同样,第二个菜单的选择会影响第三个菜单的内容。在本案例中,...
用户在一级菜单中选择一项后,二级菜单会根据一级选择动态更新其选项,以此类推。这种设计能有效节省屏幕空间,提高用户操作效率。 在IT行业中,实现连动下拉主要涉及前端开发,特别是JavaScript、HTML和CSS这三门...
在IT行业中,二级联动是一种常见的前端交互设计,通常用于下拉选择框或者级联菜单,让用户在选择一级分类后,自动加载与之相关的二级分类。在这个场景中,"二级连动用javascript实现的"指的是利用JavaScript来处理...
这里我们关注的是如何利用AJAX实现三级联动的效果,即在一个下拉菜单中选择一项时,相关的第二级和第三级下拉菜单会根据选择自动更新其内容。这在如地区选择、产品分类等场景中非常常见。 首先,我们需要理解AJAX的...
例如,第一个下拉菜单选择省份,第二个下拉菜单会根据所选省份自动更新为该省份的城市,第三个下拉菜单则显示选定城市下的区县。这样的设计极大地减少了用户的输入工作量,提高了用户体验。 在ASP中,实现这一功能...
当用户在第一级选择一个选项时,第二级的选择项会根据第一级的选值动态更新;同理,当第二级选定后,第三级的选项也会相应改变。这种联动效果常用于地区选择、产品分类等场景,能够提供灵活且直观的用户体验。 在...
2. JavaScript实现:通常使用JavaScript进行动态渲染,监听父级菜单的选中事件,根据所选值动态生成子级菜单。使用事件委托可以有效地处理动态添加的子菜单项,避免重复绑定事件。 3. CSS样式:为了提供良好的用户...