Anonymous
-
2016-03-12
Post awaiting moderation.
I'm trying to show the datepicker starting from a month in the past; I'm guessing I need to use showCurrentAtPos but not sure how.
Here's my code:
var dates = jQuery('#course_dates').val(); var dates_array = dates.split(','); var firstdate = new Date(dates_array[0]); jQuery('.mdp').multiDatesPicker({ dateFormat: "dd/mm/yy", altField: '#course_dates', numberOfMonths: [2,3], addDates: dates_array, showCurrentAtPos: firstdate.getMonth() });
But this is not working... help/suggestions?
Thanks,
David
Anonymous