回答編集履歴

2

ソースの修正

2018/10/23 03:52

投稿

baron3
baron3

スコア16

test CHANGED
@@ -110,13 +110,13 @@
110
110
 
111
111
  </ul >
112
112
 
113
- <input type="hidden" class="form-control" id="form_type" name="form_type" aria-label="" value="">
113
+ <input type="hidden" class="form-control" id="form_type" name="form_type[1]" aria-label="" value="">
114
114
 
115
115
  </div>
116
116
 
117
117
 
118
118
 
119
- <input type="text" class="form-control" aria-label="Text input with dropdown button">
119
+ <input type="text" class="form-control"id="input_form" name="input_form[1] aria-label="Text input with dropdown button">
120
120
 
121
121
  </div>
122
122
 
@@ -206,6 +206,16 @@
206
206
 
207
207
  .text('id');
208
208
 
209
+ copiedForm
210
+
211
+ .find('#input_form')
212
+
213
+ .attr('name', 'input_form[' + (count + 1) + ']')
214
+
215
+ .text('');
216
+
217
+
218
+
209
219
  }
210
220
 
211
221
 

1

コメントの修正

2018/10/23 03:52

投稿

baron3
baron3

スコア16

test CHANGED
@@ -188,7 +188,7 @@
188
188
 
189
189
 
190
190
 
191
- //コピーしたフォームの値を初期化
191
+
192
192
 
193
193
  copiedForm
194
194
 
@@ -198,6 +198,8 @@
198
198
 
199
199
  .val('');
200
200
 
201
+      //コピーしたフォームの値を初期化
202
+
201
203
  copiedForm
202
204
 
203
205
  .find('.dropdown-toggle')