📌  相关文章
📜  bootstrapmaterialdatepicker 获取更改的选定值 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:55.188000             🧑  作者: Mango

代码示例1
$('#drop_time, #pickup_time').bootstrapMaterialDatePicker({
  minDate: moment(),
  format: 'YYYY-MM-DD HH:mm'
});

$('#drop_time').on('change', function (selected) {
  const minDate = moment($(selected.target).val());
  $('#pickup_time').bootstrapMaterialDatePicker('setMinDate', minDate);
});