Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How show hidden <td> in JQuery datepicker?

How can I show hidden(disabled) TD elements in standard JQ datepicker?

enter image description here

I have tried this way, but that 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>');
    }
});
like image 999
Brazzford Avatar asked Dec 17 '25 05:12

Brazzford


1 Answers

The base jquery ui datepicker has 2 attributes to show dates in other months (showOtherMonths) and allow 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
})
like image 134
scrappedcola Avatar answered Dec 19 '25 19:12

scrappedcola



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!