title: How to Select a value in <select> tag using javascript?
body: <p>This is the Select tag That I used..</p>
  
  <pre><code>&lt;select class="form-control" id="VillagesComboidmod"&gt;
    &lt;option&gt;Kandy&lt;/option&gt;
    &lt;option&gt;Ampitiya&lt;/option&gt;
    &lt;option&gt;Semaneriya&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>This is the code that I used to select a value..</p>
  
  <pre><code>document.getElementById('VillagesComboid').value = "Ampitiya";
  </code></pre>