maxDate : Date|String|FunctionDefault: undefined

The maximum selectable date. When not set, there is no maximum

Examples

Today

    
 <input id="datepicker" width="312" />
 <script>
    var today, datepicker;
    today = new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate());
    datepicker = $('#datepicker').datepicker({
        maxDate: today
    });
 </script>

  

Tomorrow

    
 <input id="datepicker" width="312" />
 <script>
     $('#datepicker').datepicker({
        maxDate: function() {
            var date = new Date();
            date.setDate(date.getDate()+1);
            return new Date(date.getFullYear(), date.getMonth(), date.getDate());
        }
     });
 </script>