parent().filter(":first") doesn't work
<p>I have:</p>

<pre><code>&lt;td&gt;firstTD&lt;/td&gt;
&lt;td&gt;secondTD&lt;/td&gt;
&lt;td&gt;thirdTD&lt;/td&gt;
&lt;td&gt;
      &lt;img src="img/cross.png" onclick="alert($(this).parent().parent().filter('td:first').val());"&gt;
&lt;/td&gt;
</code></pre>

<p>Why I didn't get an alert: "firstTD" ?</p>
