title: Get selected option from select element
body: <p>I am trying to get the selected option from a dropdown and populate another item with that text, as follows. IE is barking up a storm and it doesn't work in Firefox:</p>
  
  <pre><code>$('#ddlCodes').change(function() {
    $('#txtEntry2').text('#ddlCodes option:selected').text();
  });
  </code></pre>
  
  <p>What am I doing wrong?</p>