質問編集履歴

2

コードの表示変更

2019/02/21 15:19

投稿

williamsArk
williamsArk

スコア46

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,8 @@
1
1
  質問よろしくお願いいたします。
2
2
 
3
3
 
4
+
5
+ ```
4
6
 
5
7
  <input type="radio" name = "choice" value = "choice1" id="choice">選択肢1<br>
6
8
 
@@ -10,7 +12,7 @@
10
12
 
11
13
  <input type="radio" name = "choice" value = "choice4" id="choice">選択肢4<br>
12
14
 
13
-
15
+ ```
14
16
 
15
17
  以上のようなラジオボタンでクイズの選択肢を作って、Javascriptの方でクイズの選択肢を限られたものの中からランダムにだす仕組みにしたいと思っています(もちろん問題の正解になる選択肢は必ず入るように取り計らう)。
16
18
 

1

いらない要素の削除

2019/02/21 15:19

投稿

williamsArk
williamsArk

スコア46

test CHANGED
File without changes
test CHANGED
@@ -2,13 +2,13 @@
2
2
 
3
3
 
4
4
 
5
- <input type="radio" id="choice"><span class="choice">&nbsp;<label for="m1"></label></span><br>
5
+ <input type="radio" name = "choice" value = "choice1" id="choice">選択肢1<br>
6
6
 
7
- <input type="radio" id="choice"><span class="choice">&nbsp;<label for="m1"></label></span><br>
7
+ <input type="radio" name = "choice" value = "choice2" id="choice">選択肢2<br>
8
8
 
9
- <input type="radio" id="choice"><span class="choice">&nbsp;<label for="m1"></label></span><br>
9
+ <input type="radio" name = "choice" value = "choice3" id="choice">選択肢3<br>
10
10
 
11
- <input type="radio" id="choice"><span class="choice">&nbsp;<label for="m1"></label></span>
11
+ <input type="radio" name = "choice" value = "choice4" id="choice">選択肢4<br>
12
12
 
13
13
 
14
14