Hi,
I am trying to understand the difference between 'value' and 'checkedValue' in a radiobutton/checked binding.
<div id="div-2">
<!-- ko foreach: items -->
<input type="checkbox" data-bind="checkedValue: $data, checked: $root.chosenItems" />
<span data-bind="text: $data"></span>
<!-- /ko -->
<div data-bind="text: ko.toJSON($root)"></div>
</div>
var viewModel = {
items: [1,2,3,4,5,6],
chosenItems: ko.observableArray(["6"])
}
ko.applyBindings(viewModel, $("#div-2")[0]);
Looks like both 'value' and 'checkedValue' do the same thing.
Regards
Norma