Jquery get all checkboxes

You can get all elements by name

var $n = jQuery.noConflict(); //Jquery no conflict                 
$n("#btnsubmit").click(function() {  
                                 
   var allChkbox=$n('input[name=chkarr[]]');                         
  jQuery.each(allChkbox, function(i, singlecheckbox) {                    
    alert(singlecheckbox.value+" is "+ singlecheckbox.checked);                  
  });                                   
});