title: javascript event not working with IE7
body: <p>When I select any option in list then it should print its value in textbox(all html).</p>
  
  <p><img src="https://i.stack.imgur.com/5T4xA.jpg" alt="enter image description here"></p>
  
  <p>I tried </p>
  
  <pre><code>stafflist.setAttribute("onchange", "javacript:document.getElementById('id_17_enrolpassword').value = this.value;");
  </code></pre>
  
  <p>Its working in IE8+ and all modern browsers but not in IE7.</p>
  
  <p>Also tried </p>
  
  <pre><code>stafflist.addEventListener('onchange',"javacript:document.getElementById('id_17_enrolpassword').value = this.value;",false);
  </code></pre>
  
  <p>So what changes I should do here?</p>