Panel inside asp.net gridview - how can I find it in jquery?
<p>I've got a panel inside a gridview.
When I click a radio button in my grid view I call the jquery <code>click</code> event
of the radio button.  That part is working fine...now I need to reference the panel that is inside my gridview, but I cannot use <code>$this</code> because that refers to my radiobuttonlist (i think it does).</p>

<p>How can I get a reference to this panel.</p>

<pre><code>            $("#MainContent_gvLineItems input[id*='rbAnswer']").click(function () {
                var p = $(this).find('[id$=MainContent_gvLineItems_pnlAnswer]'); // find the panel but this wont work so what can I do here?
            });
</code></pre>

<p>I dont know if my syntax is even right for <code>id$=MainContent_gvLineItems_pnlAnswer</code> being that the panel id changes for each row in the grid view...</p>

<h1>Edit</h1>

<p>Here is some of the grid view:</p>

<pre><code>&lt;asp:TemplateField HeaderText="Answer"&gt;
                            &lt;ItemTemplate&gt;
                               &lt;div id="dMainAnswer"&gt;
                                &lt;asp:RadioButtonList ToolTip="Please provide an answer to the method." RepeatDirection="Horizontal" ID="rbAnswer" runat="server" SelectedValue='&lt;%# DataBinder.Eval(Container, "DataItem.AnswerID")%&gt;'&gt;
                                    &lt;asp:ListItem Text="Yes" Value="Yes" style="color:green;"&gt;&lt;/asp:ListItem&gt;
                                    &lt;asp:ListItem Text="No" Value="No" style="color:red;"&gt;&lt;/asp:ListItem&gt;
                                    &lt;asp:ListItem Text="N/A" Value="N/A" style="color:gray;"&gt;&lt;/asp:ListItem&gt;
                                    &lt;asp:ListItem Value="" Text="" style="display: none" /&gt;
                                &lt;/asp:RadioButtonList&gt;
                                   &lt;asp:Panel ID="pnlAnswer" runat="server" Visible="False"&gt;
                                       &lt;div id="dMainAnswerResponsibleType"&gt;
                                            &lt;asp:RadioButtonList ID="rbRespType" ToolTip="Select responsible contact type." runat="server" RepeatDirection="Horizontal" AutoPostBack="true" SelectedValue='&lt;%# DataBinder.Eval(Container, "DataItem.ResponsiblePartyType")%&gt;' OnSelectedIndexChanged="rbRespType_SelectedIndexChanged"&gt;
                                                &lt;asp:ListItem Selected="True" Text="TKSE" Value="TKSE"&gt;TKSE&lt;/asp:ListItem&gt;
                                                &lt;asp:ListItem Text="Other" Value="Other"&gt;Other&lt;/asp:ListItem&gt;
                                                &lt;asp:ListItem Value="" Text="" style="display: none" /&gt;
                                            &lt;/asp:RadioButtonList&gt;
                                        &lt;/div&gt;
                                        &lt;div id="dMainAnswerResponsible"&gt;&lt;a href="#" onclick="return false;" class="info"&gt;Res:&lt;span&gt;Select who is responsible in resolving this issue.&lt;/span&gt;&lt;/a&gt;
                                             &lt;asp:DropDownList ID="ddlEmployees" runat="server" 
                                                DataSource="&lt;%# GetEmployees() %&gt;" SelectedValue='&lt;%# Eval("TKSEContact") %&gt;' DataTextField="FullName" Width="75px"
                                                DataValueField="FullName" 
                                                ToolTip="Select the TKSE responsible party."&gt;
                                            &lt;/asp:DropDownList&gt;
                                            &lt;asp:TextBox ID="txtContact" Text='&lt;%# Eval("ResponsiblePartyContact") %&gt;' Width="75px" MaxLength="50" runat="server" ToolTip="Enter the responsible contact name." Visible="false"&gt;&lt;/asp:TextBox&gt;
                                        &lt;/div&gt;
                                        &lt;div id="dDueDate"&gt;&lt;a href="#" onclick="return false;" class="info"&gt;Due:&lt;span&gt;Select the due date when you expect this issue to be resolved.&lt;/span&gt;&lt;/a&gt;
                                            &lt;asp:TextBox ID="txtDueDate" Text='&lt;%# Eval("DueDate") %&gt;' Width="59px" runat="server" ToolTip="Select the due date." CssClass="datePickerDueDate"&gt;&lt;/asp:TextBox&gt;
                                        &lt;/div&gt;
                                        &lt;div id="cSendToSugar"&gt;
                                            &lt;asp:CheckBox ID="chkSendToSugar" ToolTip="Send/Update issue to Sugar?" BackColor="Gold" Text="Send To Sugar?" Checked="true" runat="server" /&gt;
                                        &lt;/div&gt;
                                   &lt;/asp:Panel&gt;
                               &lt;/div&gt;
                            &lt;/ItemTemplate&gt;
                                &lt;FooterStyle HorizontalAlign="Center" /&gt;
                                &lt;HeaderStyle HorizontalAlign="Center" /&gt;
                                &lt;ItemStyle HorizontalAlign="Center" /&gt;
                            &lt;/asp:TemplateField&gt;
</code></pre>

<p>Notice the panel <code>pnlAnswer</code>, its initially set to invisible <code>Visible=False</code>.  It also isnt a sibling of the radiobutton list..at least I dont think it is...</p>
