質問編集履歴

3

テキスト追加

2017/08/22 01:10

投稿

groco
groco

スコア20

test CHANGED
File without changes
test CHANGED
@@ -118,6 +118,10 @@
118
118
 
119
119
 
120
120
 
121
+ (1で採点ボタンをクリックしたら2、3の動きをさせたいです。)
122
+
123
+
124
+
121
125
  $("#test").scrollTo(0);
122
126
 
123
127
  を追加したりしてみましたがうまくいきませんでした。

2

ID名修正

2017/08/22 01:10

投稿

groco
groco

スコア20

test CHANGED
File without changes
test CHANGED
@@ -100,7 +100,7 @@
100
100
 
101
101
 
102
102
 
103
- <div id="result"></div>
103
+ <div id="test"></div>
104
104
 
105
105
  </form>
106
106
 

1

html追加

2017/08/22 00:50

投稿

groco
groco

スコア20

test CHANGED
File without changes
test CHANGED
@@ -52,6 +52,62 @@
52
52
 
53
53
 
54
54
 
55
+ ```html
56
+
57
+ <form name="quiz">
58
+
59
+ <p>Q1 クイズ1の問題文</p><br>
60
+
61
+ <label><input type=radio name="a" checked>アンサー1</label>
62
+
63
+ <label><input type=radio name="a">アンサー2</label>
64
+
65
+ <label><input type=radio name="a">アンサー3</label>
66
+
67
+ <p>Q2 クイズ2の問題文</p><br>
68
+
69
+ <label><input type=radio name="b" checked>アンサー1</label>
70
+
71
+ <label><input type=radio name="b">アンサー2</label>
72
+
73
+ <label><input type=radio name="b">アンサー3</label>
74
+
75
+ <p>Q3 クイズ3の問題文</p><br>
76
+
77
+ <label><input type=radio name="c" checked>アンサー1</label>
78
+
79
+ <label><input type=radio name="c">アンサー2</label>
80
+
81
+ <label><input type=radio name="c">アンサー3</label>
82
+
83
+ <p>Q4 クイズ4の問題文</p><br>
84
+
85
+ <label><input type=radio name="d" checked>アンサー1</label>
86
+
87
+ <label><input type=radio name="d">アンサー2</label>
88
+
89
+ <label><input type=radio name="d">アンサー3</label>
90
+
91
+ <p>Q5 クイズ5の問題文</p><br>
92
+
93
+ <label><input type=radio name="e" checked>アンサー1</label>
94
+
95
+ <label><input type=radio name="e">アンサー2</label>
96
+
97
+ <label><input type=radio name="e">アンサー3</label>
98
+
99
+ <input type=button value="採点" onClick="saiten()">
100
+
101
+
102
+
103
+ <div id="result"></div>
104
+
105
+ </form>
106
+
107
+ ```
108
+
109
+
110
+
55
111
  【やりたいこと】
56
112
 
57
113
  1)採点ボタンをクリック