Get attribute values as array from selection of elements using jQuery
<p>I have the following using jQuery:</p>

<pre><code>var x = $('.boxes &gt; input:checked');
</code></pre>

<p>From x I am trying to retrieve an array of id values and have been unable to work out how to do this.</p>

<p>Something like:</p>

<pre><code>var y = x[id];
// y becomes an array like ['1', '2', '3'] assuming
// that x had 3 checkboxes with id's of 1, 2, 3 etc.
</code></pre>
