selectOtherMonths : BooleanDefault: true

Whether days in other months shown before or after the current month are selectable. This only applies if the showOtherMonths option is set to true.

Examples

True

    
 <input id="datepicker" width="312" />
 <script>
    $('#datepicker').datepicker({
        showOtherMonths: true,
        selectOtherMonths: true
    });
 </script>

  

False

    
 <input id="datepicker" width="312" />
 <script>
     $('#datepicker').datepicker({
        showOtherMonths: true,
        selectOtherMonths: false
     });
 </script>