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:
selected_list = $("#ID").attr("checked", "true");
this however is only returning the top one when I read them into a variable with a loop like this:
list = '';
$(selected_list).each(
function() {
list += $(this).val() + " ";
}
);
alert(list);
Anyone know of a better way of doing this or why my version is only returning the first checkbox? Thanks