$("input").each(function(){ alert($(this).attr("checked")) });
<input type="checkbox" name="01" checked="checked"> <input type="checkbox" name="02">