How to show hidden <td> in jQuery datepicker?
How can I show hidden (disabled) TD elements in JQ standard datepickle?
I tried this path but it doesn't work:
$('#datepicker').multiDatesPicker({
dateFormat: 'dd/mm/yy',
onSelect: function(date){
var dates = $('#datepicker').multiDatesPicker('getDates');
$('.ui-state-disabled').empty();
$('.ui-state-disabled').append('<a class="ui-state-default" href="#"> </a>');
}
});
+3
source to share
1 answer
The jquery ui datepicker base has 2 attributes for displaying dates in other months ( showOtherMonths
) and allows them to be selected ( selectOtherMonths
). You should be able to do the same in this extension.
$('#datepicker').multiDatesPicker({
dateFormat: 'dd/mm/yy',
showOtherMonths: true,
selectOtherMonths: true
})
+3
source to share