I am having problems when using the datepicker dynamically. I make a query to the database and depending on the existing records, I "paint" the calendars. When it is a single record I have no problems, but when there are more than one, it sends me the following error:
Uncaught TypeError: Can not read property 'split' of undefined
This is the way I'm defining the boxes:
<input id='txt_fechainicio' name='fecha_inicio[]' type='text' class='form-control datepicker' data-date-format='dd-mm-yyyy' required>
Also, of the calendars that it does open to me, it marks me in the following way:
Does anyone have any suggestions of what it might be?