Question

J'utilise Knockout javascript bibliothèque, et je lance ce problème: je ne peux pas changer le bouton radio sélection dans IE7

.

Par exemple, sur ma page, je ne peux pas changer la sélection du bouton radio en utilisant IE 7 la façon dont le controlTypes exemple fait.

Y at-il une solution à ce problème?

Était-ce utile?

La solution

J'ai trouvé la solution. En ajoutant l'attribut name avec la même valeur (name="planetType", voir ci-dessous) pour tous les boutons radio du groupe, IE sera également heureux ...

<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>
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top