Expand|Select|Wrap|Line Numbers
- <div id="Panels" style="width: 28%;">
- <asp:Panel ID="one" runat="server" CssClass="Panel">
- <div id="Head" onclick="doToggle();">
- HEADER
- </div>
- </asp:Panel>
- <asp:Panel ID="two" runat="server" CssClass="Content">
- abcdefghijklmnopqrstuvwxyz
- </asp:Panel>
- <cc1:CollapsiblePanelExtender ID="cpe" runat="server" TargetControlID="two"></cc1:CollapsiblePanelExtender>
- </div>
and the function doToggle() is:
Expand|Select|Wrap|Line Numbers
- <script type="text/javascript">
- function doToggle()
- {
- var cpe = $find("cpe");
- //cpe._toggle();
- if (cpe.get_Collapsed())
- {
- cpe._doOpen();
- }
- else
- {
- cpe._doClose();
- }
- }
- </script>
But the problem is the if i want to have more div tags but use this same function for all just by calling it by giving the appropriate id?