9 Star 18 Fork 8

Google / jquery.cityselect

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.html 783 Bytes
一键复制 编辑 Web IDE 原始数据 按行查看 历史
Google 提交于 2016-12-19 17:24 . 项目初始化
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<title>省市地区三级联动</title>
<script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
<script src="jquery.cityselect.min.js"></script>
<script>
jQuery(function () {
jQuery("#city").citySelect({
url:"jquery.cityselect.citylist.json",
prov:"江苏", //省份
city:"南京", //城市
dist:"玄武区", //区县
nodata:"none" //当子集无数据时,隐藏select
});
});
</script>
</head>
<body>
<p>省市地区三级联动</p>
<div id="city">
<select class="prov"></select>
<select class="city" disabled="disabled"></select>
<select class="dist" disabled="disabled"></select>
</div>
</body>
</html>
JavaScript
1
https://gitee.com/howe/jquery.cityselect.git
git@gitee.com:howe/jquery.cityselect.git
howe
jquery.cityselect
jquery.cityselect
master

搜索帮助

14c37bed 8189591 565d56ea 8189591