For those who, like me, are struggling to get him to work with the dynamically linked name and values ββof a group of radio stations , pay attention to the order of bindings in the data-bind .
Below will NOT work, since value and name are linked after checked :
<input type="radio" data-bind=" checked: $parent.correctAnswerId, attr: {name: 'correctAnswerFor' + $parent.id, value: id} " />
correct order:
attr: {name: 'correctAnswerFor' + $parent.id, value: id}, checked: $parent.correctAnswerId
source share