title: JavaScript onChange() on multiple elements
body: <p>Is it possible to assign the same onChange() to multiple elements (no jQuery)</p>
  
  <p>At the moment i'm doing</p>
  
  <pre><code>var namefirst = document.getElementsByName("attribute.Identifier Source")[0];
  namefirst.onchange = function () {//disable some stuff }
  </code></pre>
  
  <p>However, I have to do this onChange() for another 5 elements, and so i was wondering if it's possible to do this for all of them at once? Or am I going to have to do this for each element.</p>
  
  <p>(I'm very new to Javascript) </p>