Open FlipperPA opened 6 years ago
I solved this issue by just setting the value after it is initiated.
$('.datetimepicker-input').each(function() {
var value = $(this).val();
$(this).datetimepicker({
format: 'YYYY-MM-DD',
date: value
});
$(this).val(value);
});
Thank you!!! after hours of searching
In the following repro, only the JavaScript
date
option is provided forstart_date
, and both thevalue
HTML attribute anddate
JavaScript option are provided forend_date
.end_date
text input, and thestart_date
is empty.Thanks for the amazing work, I hope this is detailed enough.