I have a checkbox being controller by a Knockout observable, but in a custom binding, the element is not checked.
<input type="checkbox" data-bind="checked: isChecked, highlightIfChecked: 'test'"/>
The element is checked and unchecked on the page, but in the highlightIfChecked
custom binding, it is not. I'm using $(elem).is(":checked")
.
JSFiddle: http://jsfiddle.net/JgLck/
How can I get the element to be checked in the custom binding?