示例地址:城市三级联动 - citys,Github
示例:
<form method="post" action=""> <div id="demo1"> <select name="province"></select> <select name="city"></select> <select name="area"></select> <input type="text" id="input" name="input"> </div> <button type="submit">提交</button> </form> <script> $('#demo1').citys({"code":130109}, function(api){ $('#input').val(api.getInfo().code); }); </script>
自己从网上整理的省市县数据:city.zip