title: Set select option 'selected', by value
body: <p>I have a <code>select</code> field with some options in it. Now I need to select one of those <code>options</code> with jQuery. But how can I do that when I only know the <code>value</code> of the <code>option</code> that must be selected?</p>
  <p>I have the following HTML:</p>
  <pre class="lang-html prettyprint-override"><code>&lt;div class=&quot;id_100&quot;&gt;
    &lt;select&gt;
      &lt;option value=&quot;val1&quot;&gt;Val 1&lt;/option&gt;
      &lt;option value=&quot;val2&quot;&gt;Val 2&lt;/option&gt;
      &lt;option value=&quot;val3&quot;&gt;Val 3&lt;/option&gt;
    &lt;/select&gt;
  &lt;/div&gt;
  </code></pre>
  <p>I need to select the option with value <code>val2</code>. How can this be done?</p>
  <p>Here's a demo page:
  <a href="http://jsfiddle.net/9Stxb/" rel="nofollow noreferrer">http://jsfiddle.net/9Stxb/</a></p>