Question

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?

Was it helpful?

Solution

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>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top