title: How can I get the selected item's text in JavaScript?
body: <p>How can I get the selected item's value and text in JavaScript?</p>
  
  <p>This is my combobox:</p>
  
  <pre><code>&lt;select  size="1" id="fTerminalType" name="fTerminalType"&gt;
      &lt;option value="AP"&gt;Airport&lt;/option&gt;
      &lt;option value="PT"&gt;Port&lt;/option&gt;
      &lt;option value="BS"&gt;Bus&lt;/option&gt;
      &lt;option value="TR"&gt;Train&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>My JavaScript is like this:</p>
  
  <pre><code>var TerminalType = document.getElementById("fTerminalType").value;
  </code></pre>
  
  <p>Here I can get the value of the combobox. But how can I get the text of the selected value? For example if value was <code>"BS"</code>, I need the text <code>"Bus"</code>.</p>