0

I have a following requirement: the datepicker should display dates starting from next month.

For example if current month is january, then it should display dates from first day of February and if it is February it should display dates from 1st of March. In all conditions the current month dates should be unselectable or hidden.

Plz help me how can i acheive this functionality?

DarkWanderer
  • 8,739
  • 1
  • 25
  • 56
  • http://stackoverflow.com/questions/8356358/jquery-date-picker-disable-past-dates Use the search button before asking a question. – CharliePrynn Jan 30 '13 at 11:10

2 Answers2

1

The jQuery date picker supports this functionality out of the box.

http://jqueryui.com/datepicker/#min-max

Paul Alan Taylor
  • 10,474
  • 1
  • 26
  • 42
0

Here is what you need to do:

$(document).ready(function() {
    $("#dateThis").datepicker({minDate: "+1M"});
});

Working fiddle.

legendofawesomeness
  • 2,901
  • 2
  • 19
  • 32