<div data-toggle="distpicker"> <select></select> <select></select> <select></select> </div>
<div data-toggle="distpicker"> <select data-province="---- 选择省 ----"></select> <select data-city="---- 选择市 ----"></select> <select data-district="---- 选择区 ----"></select> </div>
<div data-toggle="distpicker"> <select data-province="浙江省"></select> <select data-city="杭州市"></select> <select data-district="西湖区"></select> </div>
The districts must be existed in the distpicker.data.js file!
$.fn.distpicker
method<div id="distpicker1"> <select></select> <select></select> <select></select> </div>
$("#distpicker1").distpicker();
<div id="distpicker2"> <select></select> <select></select> <select></select> </div>
$("#distpicker2").distpicker({ province: "---- 所在省 ----", city: "---- 所在市 ----", district: "---- 所在区 ----" });
<div id="distpicker3"> <select></select> <select></select> <select></select> </div>
$("#distpicker3").distpicker({ province: "浙江省", city: "杭州市", district: "西湖区" });
The districts must be existed in the distpicker.data.js file!
<div data-toggle="distpicker"> <select></select> <select></select> </div>
<div data-toggle="distpicker"> <select></select> </div>
$("#distpicker4").distpicker({ placeholder: false });
$("#distpicker5").distpicker({ autoSelect: false });
适用浏览器:360、FireFox、Chrome、Opera、傲游、搜狗、世界之窗. 不支持Safari、IE8及以下浏览器。