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

Threaded View

  1. #2
    Join Date
    Nov 2011
    Posts
    2

    Re: jquery - show multiple divs

    Here's the jquery script I'm using that isn't working:

    Code:
    <script type="text/javascript">
            $(document).ready(function () {
                $("img#importantImg").click(function () {                
                    $("#divLayer1").show(); 
                    $("#divLayer2").show(); 
                    $("#divLayer3").show();
                    $("#divLayer4").show();
                    $("#divLayer5").show();                                                
                    $("#importantImg").attr("src", "<&#37;=  Page.ResolveUrl("~/{0}/_res/_images/icon_alertMessage.png", PBS.Cms.Settings.PBSFolderName) %>");                               
                });
            });
    
        </script>
    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
  •  





Click Here to Expand Forum to Full Width

Featured