jQuery - select parent by child class?
<p>How can I select the <code>&lt;tr&gt;</code> containing the child <code>&lt;div class="test"&gt;</code>, as below?</p>

<pre><code>&lt;table&gt;
&lt;tr&gt; &lt;!-- this tr is what I want to select --&gt;
&lt;td&gt;
&lt;div class="test"&gt; text &lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
</code></pre>
