title: jQuery or Javascript to parse querystring on submit
body: <p>This form has multiple choices through a checkbox. Eg. Pet You Own is a multiple choice and there are various options such as Cat, Dog, Mule etc.</p>
  
  <p>Now by default, the querystring sent will look like:</p>
  
  <pre><code>?pet=dog&amp;pet=cat&amp;pet=mule 
  </code></pre>
  
  <p>given all 3 are checked.</p>
  
  <p>I need a way to parse this so that the querystring looks like:</p>
  
  <pre><code>?pet=dog,cat,mule
  </code></pre>
  
  <p>Another requirement is that, there are other parameters/inputs in the form so it needs to work in conjunction with other standard form inputs.</p>