jQuery UI datepicker show month when mindate is in the future -


this code:

$('#dp').datepicker(); $('#dp').datepicker( "setdate", "05/01/2013" ); $('#dp').datepicker("option", "mindate", "07/01/2013" ); 

currently when open date picker see month of july 2013 since mindate, see month of may 2013 , see dates month disabled (since mindate july 2013).

is possible setdate month prior mindate?

try this:

var d = $.datepicker.parsedate("mm/dd/yy", "07/01/2013"); $('#dp').datepicker({     beforeshowday: function (date) {         return [date >= d, ''];     } }); $('#dp').datepicker("setdate", "05/01/2013"); 

jsfiddle example


Comments