title: When textbook has any value then automatically drop-down option will selected
body: <p>When textbox has any value then how to automatically drop-down option will selected? </p>
  
  <p>For Example :</p>
  
  <p><strong><em>This is my drop down</em></strong></p>
  
  <p></p>
  
  <pre><code>&lt;option&gt;pick a color&lt;/option&gt;  
  &lt;option value="red"&gt;RED&lt;/option&gt;
  &lt;option value="blue"&gt;BLUE&lt;/option&gt;
  &lt;option value="others"&gt;Green&lt;/option&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong><em>This is text box :</em></strong></p>
  
  <pre><code>&lt;input type="text" name="color" id="color" /&gt;
  </code></pre>
  
  <p><strong><em>Question</em></strong></p>
  
  <p>If any type value is fill in text box, how to select automatically Green in drop down. </p>