title: Combine the same named fields when using JQuery serializeArray
body: <p>Hi I have the below example form</p>
  
  <pre><code>&lt;form id="search" method="GET" action="/results"&gt;
      &lt;input type="text" name="name"&gt;
      &lt;input type="checkbox" name="rating" value="1"&gt;
      &lt;input type="checkbox" name="rating" value="2"&gt;
      &lt;input type="checkbox" name="rating" value="3"&gt;
      &lt;input type="checkbox" name="rating" value="4"&gt;
      &lt;input type="checkbox" name="rating" value="5"&gt;
      &lt;input type="submit" value="Submit" name="submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>When I submit the form after selecting some of the rating checkboxes and use JQuery serialize() as shown below</p>
  
  <pre><code>$('#search').submit(function() {
      var $form = $(this);
      var strFormData = $form.serialize();
      //var objFormData = $form.serializeArray();
      //var strFormDataParamResult = $.param(objFormData);
  });
  </code></pre>
  
  <p>I get an example for strFormData like this</p>
  
  <pre><code>"name=help&amp;rating=1&amp;rating=2&amp;rating=3"
  </code></pre>
  
  <p>Is there a way to combine any params with the same name into this result</p>
  
  <pre><code>"name=help&amp;rating=1,2,3" 
  </code></pre>
  
  <p>by manipulating the result of serializeArray() and then using $.param(..) ?</p>
  
  <p>If so does anyone have an example of this?</p>
  
  <p>Thanks for any help.</p>