Skip to content

Commit 8697bbc

Browse files
committed
Improved jQuery code
1 parent c9b1cb4 commit 8697bbc

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
@@ -395,7 +395,7 @@ one example:
395395
396396
function addTagForm(collectionHolder, $newLinkLi) {
397397
// Get the data-prototype explained earlier
398-
var prototype = collectionHolder.attr('data-prototype');
398+
var prototype = collectionHolder.data('prototype');
399399
400400
// get the new index
401401
var index = collectionHolder.data('index');

0 commit comments

Comments
 (0)