문제

I am using Knockout javascript library, and I run into this problem: I am unable to change the radio button selection in IE7.

For example, on my page, I am unable to change the radio button selection using IE 7 the way the controlTypes example does it.

Is there a fix to this problem?

도움이 되었습니까?

해결책

I've found the solution. By adding the name attribute with same value (name="planetType", see below) for all the radio buttons in the group, IE will also be happy...

<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>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top