I have a check box and kendo switch,i want the switch to be disabled by check the checkbox and enabled by un-check the checkbox,i think 4 years back this was a question and as it was answered at the time,should be able to do so,any way here is the code:
<input type="checkbox" id="eq1" class="k-checkbox">
<label>Crew Present:</label><input type="checkbox" id="notifications-switch" aria-label="Notifications Switch" disabled="disabled" />
<label>Grid Loss:</label><input type="checkbox" id="notifications-Grid" aria-label="Notifications Switch" disabled="disabled" />
here is the JS:
$(function () {
$("#notifications-switch").kendoMobileSwitch();
//$("#notifications-Grid").kendoMobileSwitch();
});
$("#eq1").change(function () {
debugger;
$("#notifications-Grid").prop("disabled", !$(this).is(":checked"));
});