2010-12-09 86 views

回答

1

我找到了解决方案。通过为该组中的所有单选按钮添加具有相同值的名称属性(name="planetType",请参阅下文),IE也将很高兴...

<label><input type="radio" value="all" data-bind="checked: typeToShow" name="planetType" />All</label>  
<label><input type="radio" value="rock" data-bind="checked: typeToShow" name="planetType"/>Rocky planets</label>  
<label><input type="radio" value="gasgiant" data-bind="checked: typeToShow" name="planetType"/>Gas giants</label>