title: click anywhere on a table row and it will check the checkbox its in...?
body: <p>I'm trying to figure out how to do this, but I can't find it out. Basically I want to be able to click anywhere on a table row and it will check/ unchecked  the checkbox its in. I know it's possible because that's what PHPMyAdmin does...</p>
  
  <p>here is my table row</p>
  
  <pre><code>&lt;tbody&gt;
  &lt;tr id="1" onclick="selectRow(1)"&gt;&lt;td width="20px"&gt;&lt;input type="checkbox" id="1" name="1/"&gt;&lt;/td&gt;&lt;td&gt;1&lt;/td&gt;&lt;td&gt;2011-04-21 22:04:56&lt;/td&gt;&lt;td&gt;action&lt;/td&gt;&lt;/tr&gt;
  
  &lt;tr id="2" onclick="selectRow(2)"&gt;&lt;td width="20px"&gt;&lt;input type="checkbox" id="2" name="2/"&gt;&lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;td&gt;2011-04-21 22:04:56&lt;/td&gt;&lt;td&gt;action&lt;/td&gt;&lt;/tr&gt;
  
  &lt;/tbody&gt;
  </code></pre>