CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Threaded View

  1. #1
    Join Date
    Nov 2011

    jquery - show multiple divs

    I'm wondering how I can show multiple divs after a user clicks on an img link with div "importantImg" below using jquery (importantImg isn't below but is in my program). The problem is that this is just one snippet of the entire page that also has divs, so I don't want to make my select be "div," I just want to interact with these 4 specific divs and show them all, including their html content. Here's the html that contains the 5 divs:

     <div id="divLayer1">
         <div id="divLayer2" class="alertPod">
         <img src="<&#37;= Page.ResolveUrl("~/{0}/_res/_images/icon_alertMessage.png",     PBS.Cms.Settings.PBSFolderName) %>" />
             <div id = "divLayer3" class="msgPod">
             <div id= "divLayer4" class="messageWrapper">
             <h6>IMPORTANT ANNOUNCEMENT</h6>
             <div class="box">         
                 <div id="divLayer5" class="viewport" style="overflow: auto; height: 48px;"  runat="server">
                        <p> <%--id= "importantMessage">--%> 
                        <asp:Literal ID="ltimportantannouncementTitle" runat="server"></asp:Literal>
                        <br />
                        <asp:Literal ID="ltimportantannouncementSummary" runat="server">  </asp:Literal>
     <a href="#" ><img id="alertCloseBtn" src="<%= Page.ResolveUrl("~/ {0}/_res/_images/button_alertMsgClose.png", PBS.Cms.Settings.PBSFolderName) %>" />     </a>
    Last edited by PeejAvery; November 5th, 2011 at 04:14 PM. Reason: Added code tags

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.