dynamically select value from drop down list
<p>I have the following drop down list:</p>

<pre><code>&lt;select name="selSS1" id="select_value"&gt;
    &lt;option value="val0"&gt;sea zero&lt;/option&gt;
    &lt;option value="val1"&gt;sea one&lt;/option&gt;
    &lt;option value="val2"&gt;sea two&lt;/option&gt;
    &lt;option value="val3"&gt;sea three&lt;/option&gt;
    &lt;option value="val4"&gt;sea four&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>I would like to dynamically select a value from that list using javascript:</p>

<p>I tried:</p>

<pre><code>document.getElementById('select_value').selected ="val3";
</code></pre>

<p>But the above code does not seem to work. Any help is most appreciated.</p>
