title: jQuery set value of nth-child input field?
body: <p>I have the following html and I want to set the value of the second radio button in the list to be checked. I know I can do this using the id attribute but how can I do the same 
      by using the class selector as below and chaining the input field to be checked?</p>
  
  <pre><code>&lt;ul class="myOptionList"&gt;
     &lt;li&gt;
       &lt;input id="1" type="radio" value="1" name="options"&gt;
       &lt;label &gt;one&lt;/label&gt;
     &lt;/li&gt;
     &lt;li&gt;
       &lt;input id="2" type="radio" value="2" name="options"&gt;
       &lt;label &gt;two&lt;/label&gt;
     &lt;/li&gt;
     ...
   &lt;/ul&gt;
  
  $(".myOptionList li:nth-child(2)"); // how do i chain input field and set it as checked
  </code></pre>