ユーザーが1から5までの評価を与えることができるフォームがあります。これはラジオボックスを介して行われます。しかし、チェックせずにユーザーが同じボタンを複数回クリックできるようにするにはどうすればよいですか?
コードは単純に書かれています
echo "<input type='hidden' name='risk' />
<td>1<input type='radio' name='question[]' id=1 value=1 onclick='calculate_score(".$number.",this.value)'/></td>
<td>2<input type='radio' name='question[]' id=2 value=2 onclick='calculate_score(".$number.",this.value)'/></td>
<td>3<input type='radio' name='question[]' id=3 value=3 onclick='calculate_score(".$number.",this.value)'/></td>
<td>4<input type='radio' name='question[]' id=4 value=4 onclick='calculate_score(".$number.",this.value)'/></td>
<td>5<input type='radio' name='question[]' id=5 value=5 onclick='calculate_score(".$number.",this.value)'/></td>
</table></form>";
誰かがこれを処理する方法を教えてもらえますか?上記のコードはコードからの抜粋であり、実際に機能することに注意してください。純粋関数型です。このラジオボックスをクリックすると、javascript関数に移動します。そこでチェックを作成しますか?そのようなことをどのように実行しますか?