How Do I Select a `td` Element in a Row That Has a Checkbox That is Checked?
<p>I have a table that looks somethings like this:</p>

<pre><code>&lt;table&gt;
  &lt;tr class="row even"&gt;
    &lt;td&gt;&lt;input type="checkbox" /&gt;&lt;/td&gt;
    &lt;td class="name"&gt;foo&lt;/td&gt;
    &lt;td class="metric"&gt;22&lt;/td&gt;
  &lt;/tr&gt;

  ...etc
</code></pre>

<p>What I want to do is get an array of all <code>td.metric</code> only in rows that have the checkbox checked.  This didn't work out as expected:</p>

<pre><code>var ticks = $.map($("tr td input:checked td.metric"), function(v,i){ return ... }); 
</code></pre>
