title: Javascript selecting option from a select dropdown, using a href
body: <p>Im working on a CMS website that creates form elements on the fly according to id and values.
  I need to select certain information out of these forms using a link.</p>
  
  <p>For radio options and checkbox options I use this code:
  <code>&lt;a href="#" onclick="document.getElementById('RAL1').checked=true"&gt;1001&lt;/a&gt;</code>
  Which works fine.
  RAL1 is the id of radio I want to check.
  With the select the id needs to be follwed by the options and this is where Im having problems because it needs to select a value out of an ID.</p>
  
  <p>The code the form creates is </p>
  
  <pre><code>&lt;select id="Zinc_plated_field" class="inputboxattrib" name="Zinc_plated12"&gt;
    &lt;option value="no"&gt;no&lt;/option&gt;
    &lt;option value="yes"&gt;yes (+€871.08)&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>I've tried just about everything but no luck. Can anybody point me in the right direction?</p>
  
  <p>Thanks!</p>