title: Javascript auto select from dropdown
body: <p>I'm searching and searching and can not find anything exactly what I need.</p>
  
  <p>So I need javascript, that will select option from dropdown, but not by the option value number, but name.</p>
  
  <p>I have:</p>
  
  <pre><code>&lt;select class="aa" id="local" name="local"&gt;
  &lt;option value="0"&gt;Cała Polska&lt;/option&gt;
  &lt;option value="1"&gt;Dolnośląskie&lt;/option&gt;
  &lt;option value="100"&gt;• Bolesławiec&lt;/option&gt;
  &lt;option value="101"&gt;• Dzierżoniów&lt;/option&gt;
  &lt;option value="102"&gt;• Głogów&lt;/option&gt;
  &lt;option value="103"&gt;• Góra&lt;/option&gt;
  &lt;option value="104"&gt;• Jawor&lt;/option&gt;
  &lt;option value="105"&gt;• Jelenia Góra&lt;/option&gt;
  </code></pre>
  
  <p>So I need to select <code>• Jawor</code> by name, not by id - it's the most important. How do I make it work?</p>