I have date control that looks like this.
<div class="OnTheMoveFormTextBoxContainer">
<input data-bind="value: formatDateTime(ko.unwrap(Started)), css: { validationElement: validateItem(Started, 'Started') }, event: {
change: function(d, e) {
if (Started != $(e)[0].target.value && dateWheelShown == true) {
$data.Started(dateToISO($(e)[0].target.value,'DD/MM/YYYY HH:mm'));
}
}
}, id: 'Started' + '_' + Id()" data-onthemove_dateformat="DD/MM/YYYY HH:mm" class="Mobile_DateTimePick ui-input-text ui-body-c ui-corner-all ui-shadow-inset ui-mini" data-mini="true" name="Started" id="scoller1400844006695" readonly="">
</div>
How could I access data-bound event handlers in knockout.js, I this current case onchange
.
I am looking for something like this: ko.contextFor($($('.OnTheMoveFormTextBoxContainer')[3]).find('input')[0]).events