File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -304,10 +304,11 @@ functionality with JavaScript:
304
304
})
305
305
});
306
306
307
- The ``data-prototype `` HTML contains the tag's ``text `` input element with a name of
308
- ``task[tags][__name__][name] `` and id of ``task_tags___name___name ``. The ``__name__ ``
309
- part is a "placeholder", which is replaced by a unique, incrementing number
310
- (e.g. ``task[tags][3][name] ``).
307
+ The ``addFormToCollection() `` function's job will be to use the ``data-prototype ``
308
+ attribute to dynamically add a new form when this link is clicked. The ``data-prototype ``
309
+ HTML contains the tag's ``text `` input element with a name of ``task[tags][__name__][name] ``
310
+ and id of ``task_tags___name___name ``. The ``__name__ `` is a placeholder, which
311
+ you'll replace with a unique, incrementing number (e.g. ``task[tags][3][name] ``):
311
312
312
313
.. code-block :: javascript
313
314
You can’t perform that action at this time.
0 commit comments