I have a checkbox that causes validation in a text box, as well as data binding to the viewmodel.
Here is my fiddle .
<input id="checkbox1" type="checkbox" data-bind="checked: viewitems">Checkbox</input>
I want the checkbox not to be attached to data when the click event returns a false value.
Is there any way to do this?
Thanks in advance.
source share