回答編集履歴
2
不要な文削除
test
CHANGED
@@ -42,8 +42,6 @@
|
|
42
42
|
|
43
43
|
function showBox(e) {
|
44
44
|
|
45
|
-
console.log(e);
|
46
|
-
|
47
45
|
var popup = event.target.nextElementSibling;
|
48
46
|
|
49
47
|
popup.style.display = "block";
|
1
id,classの修正
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
-
[DEMO](https://jsfiddle.net/rep1drt1/
|
5
|
+
[DEMO](https://jsfiddle.net/rep1drt1/2/)
|
6
6
|
|
7
7
|
|
8
8
|
|
@@ -12,7 +12,7 @@
|
|
12
12
|
|
13
13
|
<input type="submit" value="カゴへ" class="popup_btn" onclick="showBox(event)">
|
14
14
|
|
15
|
-
<div
|
15
|
+
<div class="popup" style="display:none;">
|
16
16
|
|
17
17
|
<div>商品を追加しました。</div>
|
18
18
|
|
@@ -26,7 +26,7 @@
|
|
26
26
|
|
27
27
|
<input type="submit" value="カゴへ" class="popup_btn" onclick="showBox(event)">
|
28
28
|
|
29
|
-
<div
|
29
|
+
<div class="popup" style="display:none;">
|
30
30
|
|
31
31
|
<div>商品を追加しました。</div>
|
32
32
|
|