javascriptbootstrap-datetimepicker

Bootstrap Datetimepicker change event is not firing


Bootstrap Datetimepicker change event is not firing without errors. Any clue?

https://github.com/Eonasdan/bootstrap-datetimepicker/blob/master/docs/Events.md

$('#datetimepickerStart').datetimepicker();

$('#datetimepickerStart').datetimepicker().on('change', function (ev) {
                alert('!!!');

});

Solution

  • I found the solution

      $('#datetimepickerStart').datetimepicker().on('dp.change', function (event) {
                    alert('!!!');
                });