title: jQuery checkbox values to comma separated list
body: <p>I have several checkboxes with a name array and I want the output of the checked boxes to be a variable with a comma separated list.</p>
  
  <pre><code>&lt;input type="checkbox" name="example[]" value="288" /&gt;
  &lt;input type="checkbox" name="example[]" value="289" /&gt;
  &lt;input type="checkbox" name="example[]" value="290" /&gt;
  </code></pre>
  
  <p>For example if the first and last box are selected the output will be:</p>
  
  <pre><code>var output = "288,290";
  </code></pre>
  
  <p>How can I do this with jQuery?</p>