title: How to set ID for form in Django?
body: <p>I've created a page, where user can make an order. So they can fill some fields like <em>description</em>,<em>notes</em> etc. including "language", which is a one field of <code>formset</code>.</p>
  
  <p>So in my <code>view</code>, there is a <code>job_creation_form</code> which contains almost all fields, then there is a <code>Formset</code> consists of <code>Language</code> forms.</p>
  
  <p>I would like to use <code>JQuery validate</code> plugin to validate fields without refreshing the page. The problem is that I can see one <code>form</code> tag in <code>HTML</code>, which doesn't have any <code>id</code>. How to set the <code>id</code>?</p>
  
  <p><a href="https://i.stack.imgur.com/dYG35.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dYG35.png" alt="enter image description here"></a></p>
  
  <pre><code>def create_order(request):
      LanguageLevelFormSet = formset_factory(LanguageLevelForm, extra=5, max_num=5)
      language_level_formset = LanguageLevelFormSet(request.POST or None)
      job_creation_form = JobCreationForm(request.POST or None, request.FILES or None)
  
      context = {'job_creation_form': job_creation_form,
                 'formset': language_level_formset}
  
      if request.method == 'POST':
          if job_creation_form.is_valid() and language_level_formset.is_valid():
              cleaned_data_job_creation_form = job_creation_form.cleaned_data
              cleaned_data_language_level_formset = language_level_formset.cleaned_data
              for language_level_form in [d for d in cleaned_data_language_level_formset if d]:
                  language = language_level_form['language']
                  level = language_level_form['level']
                  job = Job(
                          customer=request.user,
                          text_to_translate=cleaned_data_job_creation_form['text_to_translate'],
                          file=cleaned_data_job_creation_form['file'],
                          short_description=cleaned_data_job_creation_form['short_description'],
                          notes=cleaned_data_job_creation_form['notes'],
                          language_from=cleaned_data_job_creation_form['language_from'],
                          language_to=language,
                          level=level,
                  )
                  job.save()
              return HttpResponseRedirect('/order-success')
          else:
              print job_creation_form.errors
              print language_level_formset.errors
              return render(request, 'auth/jobs/create-job.html', context=context)
  
      return render(request, 'auth/jobs/create-job.html', context=context)
  </code></pre>