Javascript - Select drop down element with target value
<p>I have a drop down box with values dynamically populated from a database.  So, its HTML is somewhat like this:</p>

<pre><code>&lt;select id="productclass"&gt;
    &lt;option value="1"&gt;Name1&lt;/option&gt;
    &lt;option value="7"&gt;Name2&lt;/option&gt;
    &lt;option value="11"&gt;Name11&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>Where the id's and the names are pulled from the database.</p>

<p>I need to be able to write JavaScript to select the option with a specific value.  So, how can I make option #7 selected using JavaScript?  I can use JQuery too if it's easier.</p>
