Bug Tracker

Ticket #5131: slideToggleASP.txt

File slideToggleASP.txt, 878 bytes (added by jfetner, 13 years ago)

Example using ASP.NET

Line 
1<script type="text/javascript">
2
3    $(document).ready(function() {
4
5    $('#<%=lnkTest.ClientID %>').click(function() {
6
7        $('#<%=pnlTest.ClientID %>').slideToggle('slow');
8            return false;
9
10        });
11    });
12    </script>
13   
14    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
15        <Scripts>
16            <asp:ScriptReference Path="~/js/jquery-1.3.2.js" />         
17        </Scripts>
18    </asp:ScriptManagerProxy>
19   
20 
21   <asp:LinkButton ID="lnkTest" runat="server" Text="View Map"/><br />
22        <asp:Panel ID="pnlTest" runat="server" style="display:none;">
23          <asp:TextBox ID="txtBox" runat="server" ReadOnly="True" Rows="20" TextMode="MultiLine"
24            Width="95%" Height="523px" Wrap="false" style = "display:block;
25        float:left;
26        margin-bottom:10px;" />           
27        </asp:Panel>