See http://multidatespickr.sourceforge.net/ for the references.
Copy and paste the code below.
var today = new Date(); var availableDates = ["9-9-2011","14-9-2016","15-9-2016"]; $('#simple-select-min-max').multiDatesPicker({ beforeShowDay: available }); function available(date) { dmy = date.getDate() + "-" + (date.getMonth()+1) + "-" + date.getFullYear(); if ($.inArray(dmy, availableDates) != -1) { return [true, "","Available"]; } else { return [false,"","unAvailable"]; } }
Leave a Reply