Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Datepicker previous/next month dates selectable

I want to show the dates of previous and next months on my datePicker. Just like this:

enter image description here

These dates should also be selectable. Is there any option in jQuery default datePicker or can I modify DatePicker to look like this?

like image 314
Adil Malik Avatar asked Mar 13 '12 17:03

Adil Malik


1 Answers

This should do it:

<script>
    $(function() {
        $( "#datepicker" ).datepicker({
            showOtherMonths: true,
            selectOtherMonths: true
        });
    });
    </script>

check out : http://jsfiddle.net/fLveY/2/

like image 181
isJustMe Avatar answered Oct 08 '22 00:10

isJustMe