title: jQuery - set select index by elements id
body: <pre><code>&lt;select id="mySelect"&gt;
    &lt;option id="sel01" value="some value"&gt;some value&lt;/option&gt;
    &lt;option id="sel02" value="some other value"&gt;some other value&lt;/option&gt;
    &lt;option id="sel03" value="maybe me"&gt;maybe me&lt;/option&gt;
    &lt;option id="sel04" value="and another one"&gt;and another one&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>I would like to select an option with use of jQuery, but not by value:</p>
  
  <pre><code>$("#mySelect").val(1);
  </code></pre>
  
  <p>but by elements id. </p>
  
  <p>Thanks for an answer.</p>