1 Star 0 Fork 8

leihg / jquery.cityselect

forked from Google / jquery.cityselect 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
README.md 867 Bytes
一键复制 编辑 原始数据 按行查看 历史
Google 提交于 2016-12-19 20:50 . Update README.md

jquery.cityselect

######找了一大圈都没找到新的版本,所以自己整理一个了,数据源来源最新的2016年2月全国行政区域表,包含港澳台地区的行政区域。

  • 用法
<script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
<script src="jquery.cityselect.min.js"></script>

jQuery(function () {
            jQuery("#city").citySelect({
				url:"jquery.cityselect.citylist.json",  //JSON数据源地址
				prov:"江苏", //省份
				city:"南京", //城市
				dist:"玄武区", //区县
				nodata:"none" //当子集无数据时,隐藏select
			});
        });


<div id="city">
    <select class="prov"></select>
    <select class="city" disabled="disabled"></select>
    <select class="dist" disabled="disabled"></select>
</div>

####demo地址 [http://howe.im/jquery.cityselect/]

JavaScript
1
https://gitee.com/leihg/jquery.cityselect.git
git@gitee.com:leihg/jquery.cityselect.git
leihg
jquery.cityselect
jquery.cityselect
master

搜索帮助