How to get the td value from a input:checked using jquery?
<p>For the life of me, I can't figure out how to get the td data using <code>$(this)</code>.
Here's my attempt</p>

<pre><code>&lt;tbody id="testTable"&gt;
    &lt;tr&gt;&lt;td class="tdData"&gt;&lt;input type="checkbox"&gt;&lt;/input&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;

$("#testTable tr td &gt; input:checked").each(function()
{
    alert($(this).parent().text()); // alert shows empty
    alert($(this).find(".tdData").text()); // alert shows empty
    alert(this.nodeName); // alert shows INPUT
    alert($(".tdData").text()); // alert shows data
});
</code></pre>

<p>Using <code>$(this)</code> does not seems to work.</p>
