change
Triggered when the underlying value of a DateTimePicker is changed.
Event Data
e.sender kendo.ui.DateTimePicker
The widget instance which fired the event.
Example - subscribe to the "change" event during initialization
<input id="datetimepicker" />
<script>
$("#datetimepicker").kendoDateTimePicker({
change: function() {
var value = this.value();
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(value); //value is the selected date in the datetimepicker
}
});
</script>
Example - subscribe to the "change" event after initialization
<input id="datetimepicker" />
<script>
$("#datetimepicker").kendoDateTimePicker();
var datetimepicker = $("#datetimepicker").data("kendoDateTimePicker");
datetimepicker.bind("change", function() {
var value = this.value();
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(value); //value is the selected date in the datetimepicker
});
</script>