好看的三级城市联动
2019-08-22 JQuery 1695
好看的三级城市联动
<div style="position: relative;"><!-- container --> <input id="city-picker1" readonly type="text"> <input id="set" type="button" value="赋值"/> </div> <script type="text/javascript"> $(function(){ $("#city-picker1").citypicker({ province: '山东省', city: '济宁市', district: '任城区' }); $("#set").click(function() { $("#city-picker1").citypicker("reset"); $("#city-picker1").citypicker("destroy"); $("#city-picker1").citypicker({ province: '山东省', city: '烟台市', district: '任城区' }); }); }); </script>
进入实验室
很赞哦! (0)
相关文章
文章评论
-
-
-
0条评论