title: .serialize() returns empty dict. What do i do wrong?
body: <p>What's wrong with this? .serialize() returns nothing. I've tried several ways to do this, but all end up with empty dictionary. form, input, #idofform, #idofinput, nothing happens...</p>
  
  <p><pre> <code>
  $(document).ready(function(){
      $.post("/resultjs/", $("form").serialize(), function(data) {
              $('.content').html(data);
              });
  });
  </pre></code> 
  ...and html. just a normal simple form. To be completely clear: I would like collect post data from the form, post them to /resultjs/ (django), retrieve the result and write it to .content div
  <pre><code> </p>
  
  &lt;div id="search"&gt;   
  
  &lt;form action="/resultjsall/" method="post"&gt;&lt;div style='display:none'&gt;&lt;input type='hidden' name='csrfmiddlewaretoken' value='somedjangocsrftoken' /&gt;&lt;/div&gt;
  
  &lt;input type="text" name="what" id="what" value="" size="80" /&gt;
  &lt;input type="submit" value="Find" /&gt;
  &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>