var name= ""; $("input:checkbox[name='AllElection']:checked").each(function () { name+= $(this).val() + " "; });