title: How can get length on checked checkbox array javascript
body: <pre><code>&lt;form name='form1' &gt;
     &lt;input type=checkbox name='cbox[]' /&gt;
  &lt;/form&gt;
  
  &lt;script&gt;    
     var checkbox = document.getElementsByName('ckbox[]')
     var ln = checkbox.length
     alert(ln)
  &lt;/script&gt;
  </code></pre>
  
  <p>How can I count only the checked checkboxes with JavaScript or jQuery?</p>