From 853dfb082a0dadb9ee50625eb4b2350de92f1ec2 Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Wed, 30 Dec 2020 14:35:32 +0100 Subject: [PATCH] Shortening the text and adding link to jQuery As a separate PR, as recommended by https://github.com/symfony/symfony-docs/pull/13450#issuecomment-722413038 --- form/form_collections.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/form/form_collections.rst b/form/form_collections.rst index e7502432a16..9e74e0d2895 100644 --- a/form/form_collections.rst +++ b/form/form_collections.rst @@ -280,9 +280,8 @@ On the rendered page, the result will look something like this: the ``data-prototype`` attribute is automatically added to the containing ``div``, and you need to adjust the following JavaScript accordingly. -The goal of this section will be to use JavaScript to read this attribute -and dynamically add new tag forms when the user clicks the "Add a tag" button. -This example uses jQuery and assumes you have it included somewhere on your page. +Now we need some JavaScript to read this attribute and dynamically add new tag forms +when the user clicks an "Add a tag" link. This example uses `jQuery`_. Add a ``script`` tag somewhere on your page so you can start writing some JavaScript. In this script, bind to the "click" event of the "Add a tag" @@ -684,6 +683,7 @@ the relationship between the removed ``Tag`` and ``Task`` object. the `symfony-collection`_ package based on jQuery for the rest of browsers. .. _`Owning Side and Inverse Side`: https://www.doctrine-project.org/projects/doctrine-orm/en/current/reference/unitofwork-associations.html +.. _`jQuery`: http://jquery.com/ .. _`JSFiddle`: http://jsfiddle.net/847Kf/4/ .. _`@a2lix/symfony-collection`: https://github.com/a2lix/symfony-collection .. _`symfony-collection`: https://github.com/ninsuo/symfony-collection