title: Populate textbox based on Dropdown selection - JavaScript
body: <p>I have a little question as I'm very new to JavaScript. I've made a dropdown containing various counties, and based on which county is selected, I want a specific email-address to populate a text field. I'm working with the following HTML form:</p>
  
  <pre><code>&lt;div
          &lt;br&gt;
          Email:
          &lt;br&gt;
          &lt;input type="text" id="email" readonly=&gt;
      &lt;/div&gt;
      &lt;div&gt;
          &lt;br&gt;
          Counties:
          &lt;br&gt;
          &lt;select id="counties"&gt;
              &lt;option value="Choose One"&gt;Choose One&lt;/option&gt;
              &lt;option value="Charlotte"&gt;Charlotte&lt;/option&gt;
              &lt;option value="Collier"&gt;Collier&lt;/option&gt;
              &lt;option value="Hillsborough"&gt;Hillsborough&lt;/option&gt;
              &lt;option value="Lee"&gt;Lee&lt;/option&gt;
              &lt;option value="Manatee"&gt;Manatee&lt;/option&gt;
              &lt;option value="Pasco"&gt;Pasco&lt;/option&gt;
              &lt;option value="Pinellas"&gt;Pinellas&lt;/option&gt;
              &lt;option value="Polk"&gt;Polk&lt;/option&gt;
              &lt;option value="Sarasota"&gt;Sarasota&lt;/option&gt;
              &lt;option value="Brevard"&gt;Brevard&lt;/option&gt;
              &lt;option value="Broward"&gt;Broward&lt;/option&gt;
              &lt;option value="Indian River"&gt;Indian River&lt;/option&gt;
              &lt;option value="Martin"&gt;Martin&lt;/option&gt;
              &lt;option value="Miami-Dade"&gt;Miami-Dade&lt;/option&gt;
              &lt;option value="Monroe"&gt;Monroe&lt;/option&gt;
              &lt;option value="Palm Beach"&gt;Palm Beach&lt;/option&gt;
              &lt;option value="St Lucie"&gt;St Lucie&lt;/option&gt;
          &lt;/select&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p><strong>For the first 9 counties; I'd like them to go to "first@email.com</strong></p>
  
  <p><strong>And for the remaining 8 counties; I'd like them to go to "second@email.com</strong></p>
  
  <p>I'm looking for some insight in how to add a value to the counties, and based on that value (Choose One = 0, first nine counties = 1, remaining eight = 2) I'd like to populate the text field with id="email" with the respective email.
  How could I go about setting this up in JavaScript? Thanks in advance. </p>