jQuery: grabbing form values
<p>If form is submitted to a function using onsubmit(), how can I get an array of the values of all checkboxes with name='values[]' ? </p>

<p>EDIT: originally I mentioned radio buttons, this is wrong - checkboxes is correct.</p>

<p>EDIT: line below only gets the value of the first one, obviously</p>

<pre><code>$("input[name='values[]']:checked").val()
</code></pre>

<p>Also, how can I get the number of checkboxes that were checked when the form was submitted?</p>
