9 Star 16 Fork 9

Google / jquery.cityselect

Gitee — Enterprise-level DevOps R&D management platform
Join Gitee
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
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/]

Repository Comments ( 2 )

Sign in for post a comment

About

Jquery三级联动省市区 expand collapse
JavaScript
Cancel

Releases

No release

jquery.cityselect

Contributors

All

Activities

load more
can not load any more
JavaScript
1
https://gitee.com/howe/jquery.cityselect.git
git@gitee.com:howe/jquery.cityselect.git
howe
jquery.cityselect
jquery.cityselect
master

Search

181749 a2d7925e 1850385 181749 9f8568a7 1850385