title: jquery serialize and multi select dropdown
body: <p>I have been using the jquery serialize() function to serialize the values of a form and submit it via ajax</p>
  
  <p>like for e.g. if the form name and id is <strong>factoryUsers</strong></p>
  
  <p><code>var data=$("#factoryUsers").serialize();</code>  </p>
  
  <p>Now this works fine for forms that have text fields, text areas, simple drop downs etc.
  But when I have a multiple dropdown , things go awry
  for e.g. if I have a dropdown of the type</p>
  
  <p><code>&lt;select size="5" id="factoryUsers" name="factoryUsers" multiple="multiple"&gt;</code> </p>
  
  <p>the serialize doesn't work correctly anymore.
  so if I select 3 users I get a query string like </p>
  
  <p><code>factoryUsers=5&amp;factoryUsers=23&amp;factoryUsers=11</code></p>
  
  <p>changing the select to array type doesn't help either <code>factoryUsers[]</code> </p>
  
  <p>Any idea or help how to get this working correctly would be great.</p>