JQUERY get list of checkboxes that are checked by ID
<p>I currently have a list of checkboxes all with the same ID which are hidden and I want to grab the list of the ones that are checked, is this possible? I am currently using this format:</p>

<pre><code>selected_list = $("#ID").attr("checked", "true");
</code></pre>

<p>this however is only returning the top one when I read them into a variable with a loop like this:</p>

<pre><code>list = '';
$(selected_list).each(
    function() {
          list += $(this).val() + " ";
    } 
);

alert(list);
</code></pre>

<p>Anyone know of a better way of doing this or why my version is only returning the first checkbox? Thanks</p>
