You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
912 B
49 lines
912 B
$(function () {
|
|
|
|
'use strict';
|
|
|
|
var $distpicker = $('#distpicker');
|
|
|
|
$distpicker.distpicker({
|
|
province: '福建省',
|
|
city: '厦门市',
|
|
district: '思明区'
|
|
});
|
|
|
|
$('#reset').click(function () {
|
|
$distpicker.distpicker('reset');
|
|
});
|
|
|
|
$('#reset-deep').click(function () {
|
|
$distpicker.distpicker('reset', true);
|
|
});
|
|
|
|
$('#destroy').click(function () {
|
|
$distpicker.distpicker('destroy');
|
|
});
|
|
|
|
$('#distpicker1').distpicker();
|
|
|
|
$('#distpicker2').distpicker({
|
|
province: '---- 所在省 ----',
|
|
city: '---- 所在市 ----',
|
|
district: '---- 所在区 ----'
|
|
});
|
|
|
|
$('#distpicker3').distpicker({
|
|
province: '浙江省',
|
|
city: '杭州市',
|
|
district: '西湖区'
|
|
});
|
|
|
|
$('#distpicker4').distpicker({
|
|
placeholder: false
|
|
});
|
|
|
|
$('#distpicker5').distpicker({
|
|
autoSelect: false,
|
|
province: '安徽省',
|
|
// city: '合肥市',
|
|
});
|
|
|
|
});
|
|
|