基本編
ラジオボタンで選択された値を調べる
<html>
<body>
<input name="rdo1" type="radio" value="1" onclick="window.alert(document.all.rdo1(0).value)">ラジオボタン1
<input name="rdo1" type="radio" value="2" onclick="window.alert(document.all.rdo1(1).value)">ラジオボタン2
</body>
</html>
|
サンプル
|
スポンサードリンク
|