I am trying to create a datepicker, and I need to disable multiple dates from it.
I managed to disable one date by doing this :
$attributes = array(
'id' => 'end',
'name' => 'end',
'data-provide' => "datepicker",
'data-date-format' => "dd/mm/yyyy",
'data-date-dates-disabled' => "14/07/2017",
'value' => date(mdate('%d/%m/%Y')),
);
$html .= form_input($attributes);
However, when I try to add multiples dates to the line data-date-dates-disabled' => "14/07/2017",
, it does not work.
I have tried doing "14/07/2017,15/07/2017"
, "[14/07/2017,15/07/2017]"
, "14/07/2017 15/07/2017"
, but nothing seems to work.
Does anyone know how to do that ?
Thank you,