title: How I can check the amount of checked checkboxes in the array of elements?
body: <p>I've got 2 arrays of checkboxes: <code>country</code> and <code>groups</code>:</p>
  
  <p><a href="https://i.stack.imgur.com/a6C55.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a6C55.png" alt="arrays"></a></p>
  
  <p>How can I check how many checkboxes are checked?</p>
  
  <p><strong>I've tried countries.$('input:checked').length - but it doesn't work.</strong></p>
  
  <pre><code>function checkBoxSelect() {
  
        var countries = countryList.find('input[type="checkbox"]');
        var groups = groupList.find('input[type="checkbox"]');
  
        console.log(countries);
        console.log(groups);
  
  
  }
  </code></pre>