Manage Symfony Form Collection with Vanilla JS

Lately, after refreshed some of my bundles (A2lixTranslationFormBundle & A2lixAutoFormBundle), I refreshed my Demo project too.

This Demo project include a example of Symfony Form collection that was done some years ago, with JQuery.

Today, JQuery is discouraged and it’s preferable to use native Javascript (which become better with latest ECMAScript releases) or more advanced solution as ReactJS or VueJS.

In the current documentation of the Symfony Form collection, Symfony provide always today a simple JQuery version.

So, if you are interested by using a fresh ES6 version that use the HTML5 Template Tag in replacement of your JQuery version, have a look to: