Skip to content

Commit ec51ca9

Browse files
committed
Rewords and reverts
1 parent 734c8b1 commit ec51ca9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

form/form_collections.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,10 @@ On the rendered page, the result will look something like this:
280280
the ``data-prototype`` attribute is automatically added to the containing ``div``,
281281
and you need to adjust the following JavaScript accordingly.
282282

283-
Now we need some JavaScript to read this attribute and dynamically add new tag forms
284-
when the user clicks an "Add a tag" link. This example uses `jQuery`_.
283+
The goal of this section will be to use JavaScript to read this attribute
284+
and dynamically add new tag forms when the user clicks the "Add a tag" link.
285+
This example uses `jQuery`_ and assumes you have it included somewhere on your
286+
page (e.g. using Symfony's :doc:`Webpack Encore </frontend>`).
285287

286288
Add a ``script`` tag somewhere on your page so you can start writing some
287289
JavaScript. In this script, bind to the "click" event of the "Add a tag"

0 commit comments

Comments
 (0)