title: What is the proper way to assign a jquery var name using a django var?
body: <p>I'm trying to do like so:</p>
  <pre><code>$counter-&quot;{{ form.instance.id }}&quot; = 0;
  </code></pre>
  <p>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.</p>
  <p>What am I doing wrong in my definition?</p>
  <p>logging in console shows the following error:</p>
  <pre><code>$counter-11 = 0
  Uncaught SyntaxError: invalid left-hand side assignment
  </code></pre>