var selectedItems = new Array(); $("input[@name='check']:checked").each(function() {selectedItems.push($(this).val());});