I'm using this package for my datepicker. I'm initiating the plugin like this (CS):
$('.datepicker').datetimepicker({
pickTime: false,
language: 'en'
})
.on('dp.change', (e) =>{
console.log 'this'
})
The datepicker works fine, but the dp.change event is not triggered, anyone can explain why?
[DIRTY SOLUTION]
For now I'm using something like this, very ugly solution though:
$('.bootstrap-datetimepicker-widget').on("click","td.day", () => {
date = $('.datepicker input[type=text]').val()
$('.datepicker p').find('span').text(date)
})