JQuery post and name attribute
<p>I have a simple form and want to post this, using jQuery. In Django I have some custom code which depends on the name attribute of the form (if request.POST.get('BoekForm2'))</p>

<p>Here is my page:</p>

<pre><code>&lt;script src="http://code.jquery.com/jquery-latest.js"&gt;&lt;/script&gt; 
&lt;script type="text/javascript"&gt;
$(document).ready(function() {
          $('form').hide();
          $('img').click(function() {
          $('select option').eq(this.alt-1).prop('selected','true');
          $('input:last').prop('Boekform2','Volgende');
//        $('form').get(0).setAttribute('name', 'BoekForm2');
          $('form').submit();
})
})
&lt;/script&gt;
&lt;form action="" method="post"&gt;
&lt;div style='display:none'&gt;
&lt;input type='hidden' name='csrfmiddlewaretoken' value='ee47602b5994f986b0e6bfa5b814096c' /&gt;&lt;/div&gt;
&lt;label for="id_Type_activiteit"&gt;Type activiteit:&lt;/label&gt;
    &lt;select name="Type_activiteit" id="id_Type_activiteit"&gt;
         &lt;option value="1" selected="selected"&gt;One&lt;/option&gt;
         &lt;option value="2"&gt;Two&lt;/option&gt;
         &lt;option value="3"&gt;Three&lt;/option&gt;
    &lt;/select&gt;
&lt;input type="submit" name="BoekForm2" value="Volgende" id="BoekForm2"/&gt;
&lt;/form&gt;

 &lt;img  style="cursor:pointer" src="../image1.jpg" alt="1" /&gt;
 &lt;img  style="cursor:pointer" src="../image2.jpg" alt="2" /&gt;
 &lt;img  style="cursor:pointer" src="../image.jpg" alt="3" /&gt;
</code></pre>

<p>When I post this form manually the POST info looks like:</p>

<pre><code>Type_activiteit     u'1'

csrfmiddlewaretoken     u'ee47602b5994f986b0e6bfa5b814096c'

BoekForm2           u'Volgende'

When I post this form using jQuery the POST info looks like:

Type_activiteit     u'1'

csrfmiddlewaretoken     u'ee47602b5994f986b0e6bfa5b814096c'
</code></pre>

<p>How do I get the name of the form in the POST info?</p>
