Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

251
Views
What is the proper way to assign a jquery var name using a django var?

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
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!