title: how do I add an option to a html form dropdown list with javascript
body: <p>I want this script to add an option to the list.</p>
  
  <p>When you open the list I want the options to be <code>test</code> and <code>hello</code></p>
  
  <p>What am I doing wrong? </p>
  
  <pre><code>&lt;SCRIPT&gt;
  function runList(){
      document.getElementById('list').value = "&lt;option&gt;hello&lt;/option&gt;";
  }
  &lt;/SCRIPT&gt;
  
  &lt;FORM NAME="myform" ACTION="" METHOD="GET"&gt;
  Your Options:
  &lt;INPUT TYPE="button" NAME="button" VALUE="Click" onClick="runList()"/&gt;
  &lt;SELECT NAME="list" ID="list"&gt;
  &lt;OPTION&gt;test&lt;/OPTION&gt;
  &lt;/SELECT&gt;
  </code></pre>