Skip to content

Commit ee6739d

Browse files
committed
Fixed code, thanks to @stof
1 parent f3f7068 commit ee6739d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/form/form_collections.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ one example:
405405
var newForm = prototype.replace(/\$\$name\$\$/g, index);
406406
407407
// increase the index with one for the next item
408-
collectionHolder.attr('index', index + 1);
408+
collectionHolder.data('index', index + 1);
409409
410410
// Display the form in the page in an li, before the "Add a tag" link li
411411
var $newFormLi = $('<li></li>').append(newForm);

0 commit comments

Comments
 (0)