Calling a trigger ("click") in jQuery simply fires the click event handler. In fact, this does not cause a click (and, thus, a change in the checked state) in this flag - the only time it does something like this, in the case when the element has the function property in the same way as an event (for example, form.submit()- but not there checkbox.click()).
, :
var viewModel = {
IsSelected: ko.observable(false)
};
ko.applyBindings(viewModel);
$('#buttonInput').click(function(){
viewModel.IsSelected(true);
});
. , . checkbox checked - , IsSelected, IsSelected checked .