how to select the parent field using jquery
<p>my main file is</p>

<pre><code>&lt;div id="man"&gt;
//some content
&lt;div id="one"&gt;
//some content
&lt;div id="two"&gt;
//some content
&lt;div id="three"&gt;
//some content
&lt;div id="four"&gt;
&lt;a title="to delete"&gt;delete&lt;/a&gt;
&lt;a title="to reset"&gt;reset&lt;/a&gt;
&lt;a title="to change"&gt;change&lt;/a&gt;
&lt;/div&gt;...// all div ends...


&lt;div id="woman"&gt;
//some content
&lt;div id="one"&gt;
//some content
&lt;div id="two"&gt;
//some content
&lt;div id="three"&gt;
//some content
&lt;div id="four"&gt;
&lt;a title="to delete"&gt;delete&lt;/a&gt;
&lt;a title="to reset"&gt;reset&lt;/a&gt;
&lt;a title="to change"&gt;change&lt;/a&gt;
&lt;/div&gt;...// all div ends...
</code></pre>

<p>and the jquery is -</p>

<pre><code>$("document").ready(function(){
$("a:contains(delete)").click(function(){
alert($(this).parent().parent().parent().parent().parent().attr("id"))
})
})
</code></pre>

<p>is there any another way to find the top parent instead of using this...??</p>
