Can the closest jquery function find child tags inside other tags
<p>I have this HTML code</p>

<pre><code>&lt;td&gt;
&lt;div&gt;&lt;p&gt; My Txt  &lt;/p&gt;&lt;/div&gt;
&lt;div&gt;&lt;a class="linkclass" &gt;link1 &lt;/a&gt;&lt;a&gt; link2 &lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;
</code></pre>

<p>Now i want that if someone click on <code>a.linkclass</code> then i alert the text inside p tag</p>

<p>I tried this but it didn't work</p>

<pre><code>$(this).closest('p').text();
</code></pre>
