0
나는 kevin luck이라는 세 개의 jQuery datepicker를 가지고 있습니다. 한 개의 날짜 피커는 MultiMonth (즉, 디스플레이)이고 다른 두 개는 texbox에 바인딩 된 한 달 (즉, From, To)입니다. 사용자가 날짜와 시간을 선택하면 날짜와 시간 사이의 날짜 범위는 Display Datepicker에서 선택해야합니다.kevin luck datepicker에서 여러 날짜 선택 - JQuery
내 코드는 다음과 같습니다
$(function() {
$(".Display").datePickerMultiMonth(
{
startDate: '01/01/1996',
numMonths: 3,
inline: true,
selectMultiple: true,
renderCallback: function ($td, thisDate, month, year) {
}
}
}
).bind(
'dpMonthChanged',
function (event, displayedMonth, displayedYear) {
// uncomment if you have firebug and want to confirm this works as expected...
//console.log('dpMonthChanged', arguments);
}
).bind(
'dateSelected',
function (event, date, $td, status) {
// uncomment if you have firebug and want to confirm this works as expected...
//console.log('dateSelected', arguments);
//alert(event + "," + date + "," + $td + "," + status);
}
);
$('#getSelected').bind(
'click',
function (e) {
alert($('div.calendar').dpmmGetSelected());
return false;
}
);
});
$(".from").datePicker({
startDate: '01/01/1996',
renderCallback: function ($td, thisDate, month, year) {
}
});
$(".to").datePicker({
startDate: '01/01/1996',
renderCallback: function ($td, thisDate, month, year) {
}
});
어떤 제안이 도움이 될 것입니다.
감사합니다.