datepicker
본문
답변 1
$(function dayTripper() {
$('.ui-datepicker-trigger').click(function() {
setTimeout(function() {
var today = $('.ui-datepicker-today a')[0];
if (!today) {
today = $('.ui-state-active')[0] || $('.ui-state-default')[0];
}
var currentYear = new Date().getFullYear();
$(".ui-datepicker-year option").filter(function() {
return $(this).text() != currentYear;
}).remove();
$('.ui-datepicker-current').hide();
today.focus();
datePickHandler();
$(document).on('click', '#ui-datepicker-div .ui-datepicker-close', function() {
closeCalendar();
});
}, 0);
});
});