Skip to content

[Form] Shortening the text and adding link to jQuery #14760

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 30, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions form/form_collections.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down