symfony/symfony-docs — pull request #3157 by attardi (2013-11-05 17:32:11+00:00)
Title: Update form_collections.rst

The assignment to collectionHolder must be done within jQuery ready function, or else it will be null.
BTW, the variables in JavaScript do not need the $, which is confusing since in jQuery $ has a special meaning.