jquery activating radio button
<p>I have several radio button that look like this:</p>

<pre><code>&lt;div id="TheOptions"&gt;
  &lt;input type="radio" name="mylist"/&gt;option 1
  &lt;input type="radio" name="mylist"/&gt;option 2
  &lt;input type="radio" name="mylist"/&gt;option 3
  &lt;input type="radio" name="mylist"/&gt;option 4
&lt;/div&gt;
</code></pre>

<p>How do I set option n to be selected?</p>

<p>So far, I have</p>

<p><code>$('#TheOptions').find('input:radio').attr('checked', 'checked');</code> </p>

<p>but I need to write something like </p>

<pre><code>function (theindex) { "select option index"; }
</code></pre>

<p>Thanks for your suggestions.</p>
