I'm using MultiDatesPicker v1.6.3 for jQuery UI (http://multidatespickr.sourceforge.net/) to display a clickable calendar.
I want to use the addDates method to add pre selected dates to the calendar. like this - http://multidatespickr.sourceforge.net/#pre-select-dates-demo
The documentation states that
The parameter dates can be a string, a date object or an array (of strings or javascript date objects).
I want to add dates from an array I've created like this
var somedates = ['3-3-2015', '4-3-2015', '5-3-2015'];
But I can't work out how to use the array with the option. It works if I use a sting with the option like
addDates: ['3-3-2015', '4-3-2015', '5-3-2015']
But how do I use the array?
Sorry if my terminology is poor!