How to choose Option from option list using JavaScript
<p>When I want to set a value to the textfield i do this:</p>

<pre><code>document.getElementById("some-textfield").value = "BlahBlahBlah";
</code></pre>

<p>But how to choose an option from dropdown option list:</p>

<pre><code>&lt;select tabindex = "11" name="b_month"&gt;
 &lt;option value=""&gt;---&lt;/option&gt;
 &lt;option value="1"&gt;Jan&lt;/option&gt;
 &lt;option value="2"&gt;Feb&lt;/option&gt;
 &lt;option value="3"&gt;Mar&lt;/option&gt;
</code></pre>

<p>I was trying something like this:</p>

<pre><code>document.getElementByName("b_month").options[2]
</code></pre>

<p>But it doesn't work.
Again I want to change it in the website, so when i type it in console, I would see the result.</p>

<p>Thank you</p>
