Select an option of select box using the value
<p>I have a dropdown box and I want to select the option based on value. Somehow I am getting handle to value say <code>3</code>. Now I want to manually select the option which has got value <code>3</code>. </p>

<p>I have tried something like this </p>

<pre><code>selectBoxElement.options[selectedValues].selected = true;
</code></pre>

<p>where <code>selectedValue = 3</code>, but it is not working.</p>
