回答編集履歴
1
マークダウンの記述
test
CHANGED
@@ -8,7 +8,11 @@
|
|
8
8
|
|
9
9
|
23行目
|
10
10
|
|
11
|
+
```
|
12
|
+
|
11
13
|
<div class="form-input", id="post" data-id = <%= @topic.id %>>
|
14
|
+
|
15
|
+
```
|
12
16
|
|
13
17
|
|
14
18
|
|
@@ -16,9 +20,13 @@
|
|
16
20
|
|
17
21
|
4,5行目
|
18
22
|
|
23
|
+
```
|
24
|
+
|
19
25
|
const posts = document.getElementById("post");
|
20
26
|
|
21
27
|
const topicId = posts.getAttribute("data-id");
|
28
|
+
|
29
|
+
```
|
22
30
|
|
23
31
|
|
24
32
|
|