回答編集履歴
2
コードの修正
test
CHANGED
@@ -3,6 +3,8 @@
|
|
3
3
|
alertで出力しています。
|
4
4
|
|
5
5
|
|
6
|
+
|
7
|
+
#radio buttonに値を設定していなかったので追記
|
6
8
|
|
7
9
|
```JavaScript
|
8
10
|
|
@@ -20,13 +22,13 @@
|
|
20
22
|
|
21
23
|
試し1
|
22
24
|
|
23
|
-
<input type = "radio" name="test">
|
25
|
+
<input type = "radio" name="test" value="試し1">
|
24
26
|
|
25
27
|
<br>
|
26
28
|
|
27
29
|
試し2
|
28
30
|
|
29
|
-
<input type = "radio" name="test">
|
31
|
+
<input type = "radio" name="test" value="試し2">
|
30
32
|
|
31
33
|
<br>
|
32
34
|
|
1
説明を追記
test
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
コード中のtest[i].valueがチェックされたradio buttonの値です。
|
2
|
+
|
3
|
+
alertで出力しています。
|
4
|
+
|
5
|
+
|
6
|
+
|
1
7
|
```JavaScript
|
2
8
|
|
3
9
|
<!doctype html>
|