() { var viewModel = function () { this.count = 0; this.checked1 = ko.observable(true); this.checked2 = ko.observable(false); this.checked3 = ko.observable(false); this.disabled = ko.observable(false); // check checkbox. this.check = function () { this.checked1(true); } }; ko.applyBindings(new viewModel()); });