title: Push array of checkbox values to hidden field
body: <p>I am running this code and it returns me set of values which are checked</p>
  
  <pre><code>var a = [];
  var cboxes = $('input[name="suppcheck[]"]:checked');
      var len = cboxes.length;
      for (var i=0; i&lt;len; i++) {
          a[i] = cboxes[i].value;
         //document.getElementByName('suppgrp[]').value = a[i];
  
      }
  </code></pre>
  
  <p>I have a hidden field with ID suppgrp where I want to push all these values  retrieved and wanted to pass it in array.. </p>
  
  <p>But I am not able to...where am I going wrong?</p>