title: HTML Combo Box selected Item's value
body: <p>Im trying to make this HTML combo box equal to a value. </p>
  
  <p><code>&lt;select name="file_type"&gt;
       &lt;option value=".jpg"&gt;.JPG&lt;/option&gt;
       &lt;option value=".png"&gt;.PNG&lt;/option&gt;
       &lt;option value=".gif"&gt;.GIF&lt;/option&gt;
  &lt;/select&gt;
  </code></p>
  
  <p>So when i select jpg on my web page, does that mean that file_type = .jpg? I'd think so. </p>
  
  <p>So then im trying to call that value from javascript, like so:</p>
  
  <p><code>var fileType = document.getElementByID("file_type").value;</code></p>
  
  <p>is that how it is done? How else can I get the value of the selected item in the combo box? </p>
  
  <p>Regards</p>