這裏是我的編碼由XDSoft日期時間選取器在OnChange事件在jQuery插件通過XDSoft日期時間選取器
<input type="text" data-format="dd/MM/yyyy hh:mm:ss" class="form-control" id="txtdatetime">
<script type="text/javascript">
$(function() {
jQuery('#txtdatetime').datetimepicker({
startDate: '+1971/05/01',
format: 'd.m.Y H:i',
onChangeDateTime: function() {
alert('yup');
}
});
});
</script>
謝謝@Ishettyl –