题
我使用敲除JavaScript库,我遇到这个问题:我无法改变在IE7的单选按钮选择
例如,我的网页上,我无法使用IE 7的方法来改变的单选按钮选择 controlTypes例如做的。
是否有一个固定到这个问题?
解决方案
我找到解决方案。通过用相同的值将所述名称属性(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>
不隶属于 StackOverflow