回答編集履歴
3
修正
test
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
```html
|
4
4
|
|
5
|
-
<input
|
5
|
+
<input type="text" size="4" id="input1">
|
6
6
|
|
7
7
|
+
|
8
8
|
|
9
|
-
<input
|
9
|
+
<input type="text" size="4" id="input2">
|
10
10
|
|
11
11
|
```
|
12
12
|
|
@@ -20,7 +20,9 @@
|
|
20
20
|
|
21
21
|
var input2 = $('#input2').val();
|
22
22
|
|
23
|
-
|
23
|
+
var result = parseInt(input1) + parseInt(input2);
|
24
|
+
|
25
|
+
$('#kekka').html(result);
|
24
26
|
|
25
27
|
});
|
26
28
|
|
2
書き損じ
test
CHANGED
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
var input2 = $('#input2').val();
|
22
22
|
|
23
|
-
$('#a
|
23
|
+
$('#kekka').html(parseInt(input1)+parseInt(input2));
|
24
24
|
|
25
25
|
});
|
26
26
|
|
1
書き損じ
test
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
inputを分かりやすく
|
2
2
|
|
3
3
|
```html
|
4
|
+
|
5
|
+
<input id="1" type="text" size="4" id="input1">
|
4
6
|
|
5
7
|
+
|
6
8
|
|