get value from <option> with javascript
<p>Does anyone know how can I get the value from all the <code>&lt;option&gt;</code> with javascript?</p>

<p>example:</p>

<pre><code>&lt;select name="test" id="test"&gt;
  &lt;option value="1"&gt;one&lt;/option&gt;
  &lt;option value="2"&gt;two&lt;/option&gt;
  &lt;option value="3"&gt;three&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>How can I using javascript to retrieved all the value from <code>&lt;option&gt;</code> and output:  </p>

<pre><code>1
2
3
</code></pre>
