title: how to select the first value in a combo
body: <p>I have a combo in my html, and sometimes I have to change the value to the first one using JavaScript.</p>
  <pre><code>enter code here
     &lt;select  name=&quot;myCombo&quot; id=&quot;myCombo&quot;&gt;
       &lt;option value=&quot;1&quot;&gt;first option&lt;/option&gt;;
       &lt;option value=&quot;2&quot;&gt;second option&lt;/option&gt;;
       &lt;option value=&quot;3&quot;&gt;third option&lt;/option&gt;;
       &lt;option value=&quot;4&quot;&gt;Other&lt;/option&gt;;
  
    &lt;/select&gt; 
     // resetCombo('myCombo')
  </code></pre>
  <p>And a JavaScript function with the combo as parameter:</p>
  <pre><code>function resetCombo(combo) {
        document.getElementById(combo).value =  document.getElementById(combo).get_items().getItem(0);
   }
  </code></pre>
  <p>But it doesn't work. Which is the correct way to do it?</p>