Hello,
I have three checkboxes
<input type="checkbox" name="item_meta[202][]" id="field_202-0" value="morning" data-bind="checked:period, selectedDate:reservationDate">
<input type="checkbox" name="item_meta[202][]" id="field_202-1" value="afternoon" data-bind="checked:period, selectedDate:reservationDate">
<input type="checkbox" name="item_meta[202][]" id="field_202-2" value="evening" data-bind="checked:period, selectedDate:reservationDate">
And i have made a custom binding handler for selectedDate.
From selectedDate i check / uncheck checkboxes depending of the value of reservationDate.
The function to check the checkbox is:
bindingContext.$data.period.push("morning");
After the execution of this function, i want to disable the checkbox. I have no idea how to arrange this?!
I can use a disable binding in the HTML, but i want to disable only one checkbox and not all three checkboxes.
Hopefully someone can help me.
Thanks in advance.