title: reset a select element
body: <p>how to make the first option selected? I tried this but doesnt work: </p>
  
  <pre><code>  selectElement.options[0].selected=true;
  </code></pre>
  
  <p>it gives me this error: </p>
  
  <pre><code>   Uncaught TypeError: Cannot read property '0' of undefined
  </code></pre>
  
  <h2>update</h2>
  
  <p>solved! by defining selectElement correctly.</p>