title: Element.classList Cannot read property 'toggle'
body: <p>I'm getting this error:</p>
  
  <blockquote>
    <p>Uncaught TypeError: Cannot read property 'toggle' of undefined at HTMLTableCellElement.toto</p>
  </blockquote>
  
  <p>Can someone help?</p>
  
  <pre><code>var comments = document.getElementsByClassName('organisation');
  var numComments = comments.length;
  
  function toto(e){
      /*this.style.cssText='background-color:white';*/
      comments.classList.toggle('.maClasse');
  }
  
  for (var i = 0; i &lt; numComments; i += 1) {
      comments[i].addEventListener('click', toto, false);
  }
  </code></pre>