There was an error while loading. Please reload this page.
1 parent c9b1cb4 commit 8697bbcCopy full SHA for 8697bbc
cookbook/form/form_collections.rst
@@ -395,7 +395,7 @@ one example:
395
396
function addTagForm(collectionHolder, $newLinkLi) {
397
// Get the data-prototype explained earlier
398
- var prototype = collectionHolder.attr('data-prototype');
+ var prototype = collectionHolder.data('prototype');
399
400
// get the new index
401
var index = collectionHolder.data('index');
0 commit comments