Skip to content

Commit 9c760d4

Browse files
matthieumotajaviereguiluz
authored andcommitted
Fix count input on form collection
1 parent af42629 commit 9c760d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

form/form_collections.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ will be show next):
328328
329329
// count the current form inputs we have (e.g. 2), use that as the new
330330
// index when inserting a new item (e.g. 2)
331-
$collectionHolder.data('index', $collectionHolder.find(':input').length);
331+
$collectionHolder.data('index', $collectionHolder.find('input').length);
332332
333333
$addTagButton.on('click', function(e) {
334334
// add a new tag form (see next code block)

0 commit comments

Comments
 (0)