As it is now after upgrading select2-rails and jQuery dependencies it only marks the last one for select2. Any ideas on what I need to change to make it work for the first x records and not only the last? It used to work at some point :)
Haven't used jQuery in years so baffled, that said I am in the process of upgrading all our dependencies so figured something in the usage changed.
The following code used to work:
For the following HTML:
As it is now after upgrading select2-rails and jQuery dependencies it only marks the last one for select2. Any ideas on what I need to change to make it work for the first x records and not only the last? It used to work at some point :)
Haven't used jQuery in years so baffled, that said I am in the process of upgrading all our dependencies so figured something in the usage changed.