title: Check a radio box
body: <p>How can I check a radio box with applescript?</p>
  
  <p>I've tried this but just get 'missing value'</p>
  
  <pre><code>do JavaScript "var elements = document.getElementsByName('radiobs');
  for (i=0;i&lt;elements.length;i++) {
    if(elements[i].value == 'Help') {
      elements[i].checked = true;
    }
  }" in document 1
  </code></pre>
  
  <p>Here's the radio box:</p>
  
  <pre><code>&lt;input name="radiobs" id="radiobs" type="radio" value="No help"&gt;
  &lt;input name="radiobs" id="radiobs" type="radio" value="Help"&gt;
  &lt;input name="radiobs" id="radiobs" type="radio" value="Some help"&gt;
  </code></pre>