I'm trying to do like so:
$counter-"{{ form.instance.id }}" = 0;
So that I can reference the unique counter for each form. This line doesn't work though. I also tried defining the var to keep it within scope of each form rather than global, but that wasn't working for me so I decided to settle on using the form id in the name.
What am I doing wrong in my definition?
logging in console shows the following error:
$counter-11 = 0
Uncaught SyntaxError: invalid left-hand side assignment