Hi All, I am still struggling with datetime picker onchange event.
For me it is not at all firing. I am using the function in ADXstudio portal for crm 365 online. I tried most of the things to get this field change event work, but no luck. Please help.
Everywhere it was suggested to use below piece of code..but none worked for me. Please help.
$(".datepicker").on("dp.change", function(e) {
alert('hey');
});
$('#timepicker').datetimepicker({
format:'MMMM DD, YYYY',
maxDate:moment(),
defaultDate:moment()
}).on('dp.change',function(e){
console.log(e);
});
$('#timepicker').data('DateTimePicker').on('dp.change', function(e) { });
//This throws error as object doesnot support property or method 'on'
$("#timepicker").on("dp.change",function (e) {
lookup();
});
Please note this script i am writing in dynamics 365 crm, under portals custom javascript.