title: Checking if checkboxes are checked ornot, returns addEventListener is not a function
body: <p>Hi I got the following code snippet where im trying to print a <code>console.log</code> dependent on if a checkbox has been checked or not.</p>
  
  <pre><code>var checkbox = document.querySelectorAll('.customer-club-widget__gender__categories .form__input-checkbox');
  
  checkbox.addEventListener("change", function() {
  
      var isChecked = checkbox.checked;
      if(isChecked){ //checked
          console.log('checked');
      }else{ //unchecked
          console.log('unchecked');
      }
  });
  </code></pre>
  
  <p>I keep getting the following error: </p>
  
  <blockquote>
    <p>Uncaught TypeError: <code>checkbox.addEventListener is not a function</code> and a cant figure out why this is happening.</p>
  </blockquote>