Closed Bellia86 closed 1 week ago
Resolved!
$("#da_data_1").on("change.datetimepicker", function (e) {
$('#a_data_1').datetimepicker('minDate', e.date);
});
$("#a_data_1").on("change.datetimepicker", function (e) {
$('#da_data_1').datetimepicker('maxDate', e.date);
});
the correct examples to copy for adminlte are these: https://getdatepicker.com/5-4/Usage/#linked-pickers
I can't get minDate and maxDate to work on the two date fields. As if the two fields were not connected. Selected by date from the first field, the second does not set minDate. I followed the example on https://getdatepicker.com/4/ I don't understand if it's a problem with the datepicker resources present in the adminLTE template or I'm doing something wrong
this is my test page: https://advertising.esprimo.com/insieme/