title: Get all elements containing a class with querySelector
body: <p>For changing some styles in a class I'm using <code>querySelector()</code>:</p>
  
  <pre><code>el.querySelector('.fa fa-car').style.display = "none";
  </code></pre>
  
  <p>This works fine for one element but if there are more elements containing this class and I want to change the display to none for all of them, this command only deletes the first occurrence of it leaving the next ones untouched.</p>
  
  <p>I tried to do it with <code>querySelectorAll()</code>:</p>
  
  <pre><code> el.querySelectorAll('.fa fa-car').style.display = "none";
  </code></pre>
  
  <p>But this one returns an error message:</p>
  
  <blockquote>
    <p>html2canvas: TypeError: Cannot set property 'display' of undefined</p>
  </blockquote>
  
  <p>any ideas about how to get all the elements containing a specific class and perform an operation on them?</p>