jquery select check box selected values
<p><code>&lt;form id="myform"&gt;</code></p>

<p><code>&lt;input type='checkbox' name='foo[]' value='1'&gt;</code></p>

<p><code>&lt;input type='checkbox' name='foo[]' checked='true' value='2' &gt;</code></p>

<p><code>&lt;input type='checkbox' name='foo[]' value='3' &gt;</code></p>

<p><code>&lt;input type='checkbox' name='foo[]' checked='true' value='4' &gt;</code></p>

<p><code>&lt;/form&gt;</code></p>

<p>now using jquery, i need to get selected values of name foo[].</p>

<p>Also i need to pass these as an array to a php file i.e foo = array(2,4)</p>
