Facing problem for accessing nested element by jquery
<p>i have few nested table with in datalist like</p>

<pre><code>&lt;asp:DataList ID="dlList" runat="server" Width="50%"
        onitemdatabound="dlList_ItemDataBound"&gt;
        &lt;ItemTemplate&gt;
            &lt;table border="0px" id="tblOuter" cellpadding="0" cellspacing="0"&gt;
                &lt;tr&gt;
                    &lt;td&gt;
                        &lt;table id="tblInner" border="0px" cellpadding="0" cellspacing="0"&gt;
                            &lt;tr class="AccordionPanelTab"&gt;
                                &lt;td class="QSHeader"&gt;&lt;asp:Label ID="lblHead" runat="server"  Text='&lt;%# Eval("QA") %&gt;'&gt;&lt;/asp:Label&gt;&lt;/td&gt;
                                &lt;td align="right"&gt;&lt;asp:Image ID="toggleImg" CssClass="ToggleImageStyle" runat="server" ImageUrl="Images/up-arrow.png" /&gt;
                                &lt;/td&gt;
                            &lt;/tr&gt;
                        &lt;/table&gt;
                    &lt;/td&gt;
                &lt;/tr&gt;
                &lt;tr &gt;
                    &lt;td class="AccordionPanelContent"&gt;&lt;div  id="content" runat="server" style="padding-left : 10px"&gt;&lt;/div&gt;&lt;/td&gt;

                &lt;/tr&gt;
            &lt;/table&gt;
        &lt;/ItemTemplate&gt;
    &lt;/asp:DataList&gt;
</code></pre>

<p>so i was trying to access element when click on tr having class called "AccordionPanelTab".</p>

<p>i wrote a jquery to access element like <code>&lt;div  id="content"&gt;</code></p>

<pre><code>&lt;asp:Image ID="toggleImg" CssClass="ToggleImageStyle" runat="server" ImageUrl="Images/up-arrow.png" /&gt; when user click on tr having class called "AccordionPanelTab".
</code></pre>

<p>my jquery is</p>

<hr>

<p>this is not my actual jquery. here i am doing few trial &amp; error for accessing element.</p>

<pre><code>jQuery(document).ready(function () {
        $("tr.AccordionPanelTab").click(function () {
            alert($(this).parent().parent().attr("id"));
            alert($(this).parent().parent().closest("table").attr("id"));

        });
     })
</code></pre>

<p>but i am not being able to do so........anyone can help. thanks</p>
