, Date Picker ( , DOM ) Date Picker.
hasDatepicker, , , , .clone() .
The solution when row cloning was to remove the cloned input fields, recreate them, add them to my newly cloned table row and THEN re-initiate the date picker
For instance:
new_row.find("td.date input").remove();
var date_tds = new_row.find("td.date");
$('<input />', {"name":"gStartDates["+n_array_pos+"]","type":"text"}).appendTo(date_tds[0]);
$('<input />', {"name":"gEndDates["+n_array_pos+"]","type":"text"}).appendTo(date_tds[1]);
new_row.find("td.date input").datepicker({
dateFormat:"dd-mm-yy",
minDate:StartDate,
maxDate:EndDate
});
source
share