Reputation: 1
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?
Upvotes: 0
Views: 1850
Reputation: 2911
Here is what you need to do:
$(document).ready(function() {
$("#dateThis").datepicker({minDate: "+1M"});
});
Working fiddle.
Upvotes: 0
Reputation: 10680
The jQuery date picker supports this functionality out of the box.
http://jqueryui.com/datepicker/#min-max
Upvotes: 1