title: Adding event listeners to multiple elements
body: <p>I've been struggling with this for a good couple of hours now.</p>
  
  <p>I want to add an event listener to all <code>&lt;select&gt;</code>s on a page and I've got this piece of code so far:</p>
  
  <pre><code>onload = function(e) {
      sels = document.getElementsByTagName('select');
      for(i=0; i&lt;sels.length; i++) {
          sels[i].addEventListener('change', alert('test!'), false);
      }
  }
  </code></pre>
  
  <p>This only triggers the alert when the page is loaded and not when I change the value in any of my <code>&lt;select&gt;</code>s.</p>
  
  <p>Can I get a nudge in the right direction, please? :-)</p>