When I select any option in list then it should print its value in textbox(all html).

I tried
stafflist.setAttribute("onchange", "javacript:document.getElementById('id_17_enrolpassword').value = this.value;");
Its working in IE8+ and all modern browsers but not in IE7.
Also tried
stafflist.addEventListener('onchange',"javacript:document.getElementById('id_17_enrolpassword').value = this.value;",false);
So what changes I should do here?
.addEventListener()function isn't implemented by IE until version 9, as explained by MDN (and if you read that doco page you'll see that even for browsers that do implement it you've got the syntax wrong: the second param should be a function, not a string).