Copy value from select to text
<p>I want to copy a select's value to text field when even the select's value changes.<br>
My code</p>

<pre><code>$(document).ready(function() {
   $('#select').change(function() {
      $('#text').val($('#select').val());
   });  
});
</code></pre>

<p>This code works only when I change the select's value using the mouse, but if I focus it and press the up/down arrow key it does not work.</p>
