jQuery+JSON的省市联动菜单
可以自定义下拉框的内容,二级三级联动均可以正常支持
XML/HTML Code
- <h3><strong>直接调用</strong></h3>
- <p>二级联动,默认选项为:请选择</p>
- <div id="city_1">
- <select class="prov"></select>
- <select class="city" disabled="disabled"></select>
- </div>
- <p>三级联动,默认省份:北京,隐藏无数据的子级select</p>
- <div id="city_2">
- <select class="prov"></select>
- <select class="city" disabled="disabled"></select>
- <select class="dist" disabled="disabled"></select>
- </div>
原文地址:http://www.freejs.net/article_biaodan_572.html