2
反正有jQuery UI Datepicker無法點擊,所以它基本上只是顯示日期嗎?我試過有沒有辦法讓jQuery UI Datepicker不可點擊?
$("#calendar").datepicker({
disabled: true,
altField: '#note_date',
maxDate: 0
});
但它沒有工作。謝謝閱讀。
反正有jQuery UI Datepicker無法點擊,所以它基本上只是顯示日期嗎?我試過有沒有辦法讓jQuery UI Datepicker不可點擊?
$("#calendar").datepicker({
disabled: true,
altField: '#note_date',
maxDate: 0
});
但它沒有工作。謝謝閱讀。
這樣的事情?
實施例:http://jsfiddle.net/Ay6Nv/
$('#calendar').datepicker({
beforeShowDay: function(date) {
return [new Date(this.value).getDate() == date.getDate()];
}
});
優異的插件非常好的適應性。 – 2012-07-27 01:42:43