I can't seem to get the change event to fire.
Here's the code:
I've tried:
and
What am I missing?
Here's the code:
<div class="k-edit-label"> @(Html.LabelFor(model => model.IsAllDay))</div><div data-container-for="isAllDay" id="is-all-day" class="k-edit-field"> <input data-bind="checked: isAllDay" data-val="true" id="isAllDay" name="isAllDay" type="checkbox" /></div>I've tried:
$(function () { $("#isAllDay").change(function () { alert("changed changed"); });});and
<div class="k-edit-label"> @(Html.LabelFor(model => model.IsAllDay))</div><div data-container-for="isAllDay" id="is-all-day" class="k-edit-field"> <input data-bind="checked: isAllDay, events: { change: isAllDayChanged}" data-val="true" id="isAllDay" name="isAllDay" type="checkbox" /></div>function isAllDayChanged() { alert("changed");}What am I missing?