title: Set selected option of select box
body: <p>I want to set a option that was selected previously to be displayed on page load. I tried it with the following code:</p>
  
  <pre><code>$("#gate").val('Gateway 2');
  </code></pre>
  
  <p>with</p>
  
  <pre><code>&lt;select id="gate"&gt;
      &lt;option value='null'&gt;- choose -&lt;/option&gt;
      &lt;option value='gateway_1'&gt;Gateway 1&lt;/option&gt;
      &lt;option value='gateway_2'&gt;Gateway 2&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>But this does not work. Any ideas?</p>