title: Prototype set selected option based on other select
body: <p>how can I "copy" the selected option between two s that have the same options using prototype ? I tried getting the selected option from the "master" combo using</p>
  
  <pre><code>function getSelectedArea() {
    $$('#areacont1 option').find(function(ele){return !!ele.selected})
  }
  </code></pre>
  
  <p>which returns null</p>
  
  <p>And setting the second combo using</p>
  
  <pre><code>var c2ROptions = $$('select#areacont2 option')
  c2ROptions[getSelectedArea()].selected = true
  </code></pre>
  
  <p>That obviously doesn't work because the function returns null.</p>
  
  <p>Any hints?</p>
  
  <p>Thanks.</p>