title: Populate text field with Value of selected option in Select list
body: <p>I'm trying to do this with javascript.  I have an onchange event for the select list calling a javascript function.  The Javascript never gets ran as I have changed the function to just a simple alert and it never pops up.  Anything obviously wrong with this?</p>
  
  <p>HTML</p>
  
  <pre><code>select name="nSupervisor" id="iSupervisor" onchange="PopulateUserName()"&gt;
          &lt;option value=""&gt;---------- &lt;/option&gt;
          &lt;option value="test1"&gt;Actual Text&lt;/option&gt;
      &lt;/select&gt;  
  &lt;input id="iSupervisorUserName" name="OBKey_WF_Manger_Supervisor_1" type="text" /&gt;
  </code></pre>
  
  <p>JavaScript</p>
  
  <pre><code>function PopulateUsername() {
      var dropdown = document.getElementById("iSupervisor");
      var field = document.getElementByID("iSupervisorName");
      field.value = dropdown.value;
      }
  </code></pre>