diff --git a/form/form_collections.rst b/form/form_collections.rst index e7502432a16..0812c2dac93 100644 --- a/form/form_collections.rst +++ b/form/form_collections.rst @@ -304,14 +304,10 @@ button so you can add a new tag form (``addFormToCollection()`` will be show nex }) }); -The ``addTagForm()`` function's job will be to use the ``data-prototype`` attribute -to dynamically add a new form when this link is clicked. The ``data-prototype`` -HTML contains the tag ``text`` input element with a name of ``task[tags][__name__][name]`` -and id of ``task_tags___name___name``. The ``__name__`` is a little "placeholder", -which you'll replace with a unique, incrementing number (e.g. ``task[tags][3][name]``). - -The actual code needed to make this all work can vary quite a bit, but here's -one example: +The ``data-prototype`` HTML contains the tag's ``text`` input element with a name of +``task[tags][__name__][name]`` and id of ``task_tags___name___name``. The ``__name__`` +part is a "placeholder", which is replaced by a unique, incrementing number +(e.g. ``task[tags][3][name]``). .. code-block:: javascript pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy