質問編集履歴
2
htmlの中身を書き換えました
title
CHANGED
File without changes
|
body
CHANGED
@@ -33,9 +33,9 @@
|
|
33
33
|
$('#addBtn').on('click', function() {
|
34
34
|
var inputTestCount = $('.test').length;
|
35
35
|
const HTMLFORM = `
|
36
|
-
|
36
|
+
<tr>
|
37
|
-
|
37
|
+
<td>testname[${inputTestCount}][]<input type="text" class="form-control test" id="username" name="text" placeholder="comment here"></td>
|
38
|
-
|
38
|
+
</tr>
|
39
39
|
`
|
40
40
|
$('tbody').append(HTMLFORM);
|
41
41
|
});
|
1
HTMLを忘れていました
title
CHANGED
File without changes
|
body
CHANGED
@@ -20,6 +20,14 @@
|
|
20
20
|
よろしくお願い致します
|
21
21
|
|
22
22
|
```ここに言語を入力
|
23
|
+
<div class="container mt-5">
|
24
|
+
<table class="table">
|
25
|
+
<tbody>
|
26
|
+
</tbody>
|
27
|
+
</table>
|
28
|
+
<button class="btn btn-primary" id="addBtn">追加</button>
|
29
|
+
</div>
|
30
|
+
|
23
31
|
<script>
|
24
32
|
$(function() {
|
25
33
|
$('#addBtn').on('click', function() {
|