デフォルトでチェックされているラジオボタンのグループがあります。このような:
<input type="radio" name="radioButton" id="rd1" checked="">
<input type="radio" name="radioButton" id="rd2">
<input type="radio" name="radioButton" id="rd3">
<input type="radio" name="radioButton" id="rd4">
<input type="radio" name="radioButton" id="rd5">
私はjavascriptでチェックされた属性を追加する方法があることを知っています。私の質問は、cssを使用して選択したラジオボタンにチェック済みの属性を追加する方法です。