Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Aug 2013
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How do i create contents box with hide option?

    http://en.wikipedia.org/wiki/Wikia
    I would like a contents box like the one in the link
    I tried saving the page so i could copy the code but even with the whole saved page the hide button doesn't work.

    How can i solve this and get it exacly like that one?

  • #2
    New to the CF scene
    Join Date
    Sep 2013
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I don't understand what you are talking about. You just give us a link pointing to wikipedia and I don't find the hidden option example, so how can we help you solve your problem?

  • #3
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    3,762
    Thanks
    23
    Thanked 546 Times in 545 Posts
    It is done with javascript. Here is a small jquery of it:
    Code:
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js">
    </script>
    <script>
    $(document).ready(function(){
      $("#hide").click(function(){
        $("ul").hide();
      });
      $("#show").click(function(){
        $("ul").show();
      });
    });
    </script>
    Evolution - The non-random survival of random variants.


  •  

    Posting Permissions

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