title: Click td, select radio button in jQuery
body: <p>Got a small problem with some very basic jQuery, I'd like to be able to click on a table cell, and then have it automatically select the radio button inside.</p>
  
  <p>HTML:</p>
  
  <pre><code>  &lt;table&gt;
     &lt;tr&gt;
      &lt;td&gt;
       1&lt;br&gt;
       &lt;input type="radio" name="choice" value="1"&gt;
      &lt;/td&gt;
      &lt;td&gt;
       2&lt;br&gt;
       &lt;input type="radio" name="choice" value="2"&gt;
      &lt;/td&gt;
      &lt;td&gt;
       3&lt;br&gt;
       &lt;input type="radio" name="choice" value="3"&gt;
      &lt;/td&gt;
     &lt;/tr&gt;
    &lt;/table&gt;
  </code></pre>
  
  <p>jQuery:</p>
  
  <pre><code> $("td").click(function () {
  
    $(this).closest('input:radio').attr('checked',true);
  
   });
  </code></pre>
  
  <p>Any help would really be appreciated, thank you!</p>