2015-11-08 50 views
0

我想從當前查看月份中刪除前一個或下一個月的日期,以便讓您準確理解我的意思是我將在突出顯示的位置正是我需要刪除jquery Datepicker從當前月份中刪除前一個或下一個月的日期

enter image description here

我試過這個代碼

$('.ui-state-disabled').html('').closest('td').removeClass('highlight-date'); 
$(document).on('click', '.ui-datepicker-next', function(event) { 
    $('.ui-state-disabled').html('').closest('td').removeClass('highlight-date'); 
}); 
$(document).on('click', '.ui-datepicker-prev', function(event) { 
    $('.ui-state-disabled').html('').closest('td').removeClass('highlight-date'); 
}); //removes all days of previos month from the current month 

它消除然而,當我點擊它一天reapears

0天

這個代碼

$('.ui-state-disabled').html('').closest('td').removeClass('highlight-date'); 

不喜歡ONSELECT或beforeShowDay的日期選擇器設置工作:

如何解決,我真的需要刪除天

回答

相關問題