Parent selector in jquery
<p>I have a table row that needs to be hidden when the anchor with class "removerow" is clicked.</p>

<pre><code>&lt;tr&gt;&lt;td&gt;Product Name&lt;/td&gt;&lt;td&gt;&lt;a class="removerow"&gt;Remove&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
</code></pre>

<p>I've been trying this, but it doesn't work:</p>

<pre><code>$("a.removerow").click(function(){
$(tr &gt; this).hide();
</code></pre>

<p>});</p>

<p>How can I select the entire table row with a child of ".removerow".</p>

<p>What am I doing wrong?</p>

<p>Thanks.</p>
