Using Javascript to view a hidden div tag in Listview ASP.NET
<p><code></p>

<pre><code>&lt;ItemTemplate&gt;
                    &lt;tr bgcolor="#efefef"&gt;
                        &lt;td width="10%"&gt;
                            &lt;asp:LinkButton ID="btnShowRoles" runat="server"&gt;
                                &lt;asp:Image ID="viewRoles" ImageUrl="/images/pointer-down.gif" runat="server" /&gt;&lt;/asp:LinkButton&gt;
                        &lt;/td&gt;
                        &lt;td width="50%" align="left"&gt;
                            &lt;font face="verdana" size="1"&gt;
                                &lt;asp:Label runat="server" ID="lblParameter"&gt;&lt;%#Eval("Name") %&gt;&lt;/asp:Label&gt;
                            &lt;/font&gt;
                        &lt;/td&gt;
                        &lt;td width="10%" align="center"&gt;
                            &lt;font face="verdana" size="1"&gt;
                                &lt;asp:Label runat="server" ID="lblType"&gt;&lt;%#Eval("Type.Name")%&gt;&lt;/asp:Label&gt;
                            &lt;/font&gt;
                        &lt;/td&gt;
                        &lt;td width="10%" align="center"&gt;
                            &lt;font face="verdana" size="1"&gt;
                                &lt;asp:Label runat="server" ID="lblRequired"&gt;&lt;%#Eval("isGlobal") %&gt;&lt;/asp:Label&gt;
                            &lt;/font&gt;
                        &lt;/td&gt;
                        &lt;td width="20%" align="center"&gt;
                            &lt;font face="verdana" size="1"&gt;&lt;a href='&lt;%#GetRedirectionURL(Eval("ID")) %&gt;'&gt;VIEW&lt;/a&gt;
                             &lt;/font&gt;
                        &lt;/td&gt;
                    &lt;/tr&gt;
                    &lt;tr&gt;
                        &lt;td&gt;
                            &lt;div align="left" class="ShowRoles"&gt;
                                &lt;asp:Label ID="Label3" runat="server"&gt;GROUPS:&lt;/asp:Label&gt;
                                &lt;asp:Label ID="Label4" runat="server"&gt;&lt;%#Eval("MarjorieRoles") %&gt;&lt;/asp:Label&gt;
                            &lt;/div&gt;
                        &lt;/td&gt;

                    &lt;/tr&gt;
</code></pre>

<p></code></p>

<p>This is the code for my ItemTemplate in a ListView. I want the linkbutton in the first  to show the  fields whenever clicked. I am new to javascript and have absolutely no idea how to go about it. Any help would be appreciated.
Thanks</p>
