Hi,
I have a DateTimeInput on the page and I am handling the ‘change’ event as such:
$(‘#dtDate’).on(‘change’, function (event) {
populateCurrentScheduleEmp();
});
populateCurrentScheduleEmp is a function that uses ajax call to retrieve information from the server and populate some other elements on the page.
Everything works as expected, however, when I inspected the request I noticed that the ‘change’ event fires 4 times. I should also mention that the populateCurrentScheduleEmp calls $(‘#dtDate’).jqxDateTimeInput(‘getDate’) to retrieve the currently selected date.
What could be causing the change event to fire multiple times?
Thank you.
Daniel