<script src="/path/to/city-picker.data.js"></script>
<script src="/path/to/city-picker.js"></script>
<input readonly id="city-picker1" type="text" placeholder="请选择省/市" data-level="[province|city|district]" data-simple="true" >
$('#city-picker1').citypicker();
自定义初始数据
<div style="position: relative;"><!-- container -->
<input readonly type="text" data-toggle="city-picker" value="北京市/北京市/海淀区">
</div>
Demo:
定义选择到层级
<div style="position: relative;"><!-- container -->
<input readonly type="text" data-toggle="city-picker" placeholder="请选择省/市" data-level="province" >
</div>
Demo:
精简版地址
<div style="position: relative;"><!-- container -->
<input readonly type="text" data-toggle="city-picker" data-simple="true" >
</div>
Demo: