create string from all checked values jQuery
<p>Ok so I do this:</p>

<pre><code>&lt;input type="checkbox" class="checkBoxClass" value="0" /&gt;
&lt;input type="checkbox" class="checkBoxClass" value="1" /&gt;
&lt;input type="checkbox" class="checkBoxClass" value="2" /&gt;
</code></pre>

<p>Then in javascript/jquery I'm trying to do something like this:</p>

<pre><code>$('#btnHtml').click(function(){
for( var checks=''; $('.checkBoxClass:checked').val() ){
    var checks = checks+', ';
}
});
</code></pre>

<p>Let's say all of those checkboxes are checked, how can I get <code>var checks</code> to be a string of <code>'0, 1, 2'</code> ?</p>

<p>Still trying to get used to the for() in JS, it might be the completely wrong way of going about it. Not sure how to do this.</p>
