Return values of checked checkboxes as CSV - jQuery
<p>I have a form and I have check-boxes inside like;</p>

<pre><code>&lt;form id="testid"&gt;
&lt;input class="chkbx" type="checkbox" value="option 1" /&gt;option 1
&lt;input class="chkbx" type="checkbox" value="option 2" /&gt;option 2
    &lt;br/&gt;&lt;br/&gt;&lt;a id="test"&gt;test&lt;/a&gt;
&lt;/form&gt;
</code></pre>

<p>I need the value of checked check-boxes returned when i click some element. Say, I need to alert;</p>

<ol>
<li><code>option1,option2</code> if both boxes are checked, </li>
<li><code>option1</code> if only option 1 is checked,</li>
<li>alert an empty box if none is selected.</li>
</ol>

<p>How can I achieve this? <strong><a href="http://jsfiddle.net/H8HNm/" rel="nofollow">Here</a></strong> is the fiddle.</p>

<p>thanks in advance...<code>:)</code></p>
