datetimepicker onchange

How can write a jquery on the change event of datetimepicker in phpmaker 2020.
Thanks for your kind reply.

If your date field is a Bootstrap input group (with a button next to the input), you may use (e.g. in Add/Edit page)

$(“#x_myfield”).parent().on(“change.datetimepicker”, function(e) {
var val = e.date;
// your code
});

Thank you very much. I tried to implement your code, but nothing triggered. What I am trying to establish is when a user new date from the datetimepicker control, the date textbox got changed with new selected value from the datetimepicker. At the same time i need to change another textbox value based on the change of the value in date textbox.
A line of reply is highly appreciated.
Thank you,
girshgee

girishgee wrote:

I tried to implement your code, but nothing triggered.

You may post your code for discussion.

Google “jquery blur event”.