Datepicker previous/next month dates selectable

14,595

This should do it:

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

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

Share:
14,595

Related videos on Youtube

Adil Malik
Author by

Adil Malik

I am here because I like to help others and be helped sometimes :-)

Updated on July 22, 2022

Comments

  • Adil Malik
    Adil Malik over 1 year

    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?