<input id="myCheckbox" type="checkbox" /> Please, please check me
<input id="myRadio" type="radio" /> Am I selected ?
我想要以下行为:
- 当 myCheckbox 被选中时,myRadio 将被选中。
- 当 myCheckbox 未选中时,myRadio 将变为未选中状态。
我将如何以非常简单的方式做到这一点?
预先感谢您的回复。
<input id="myCheckbox" type="checkbox" /> Please, please check me
<input id="myRadio" type="radio" /> Am I selected ?
我想要以下行为:
我将如何以非常简单的方式做到这一点?
预先感谢您的回复。