SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist escapedf's Avatar
    Join Date
    May 2002
    Location
    Cape Town
    Posts
    458
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy show/hide toggle problem

    Hi all..Heres a demo for a show/hide script - looks pretty cool at first glance..http://papermashup.com/jquery-show-hide-plugin (script)http://papermashup.com/demos/jquery-show-hide-plugin/ (demo)But, Does anyone know how to hide the 1st divs content, after clicking "view" and then the 2nd "view" on this demo?http://papermashup.com/demos/jquery-show-hide-plugin/ A few people have asked the coder, he has suggested having the same class on the divs but that still shows all three at the same time. Can anyone help us?
    "have the courage to follow your heart and intuition. They somehow already know what you truly want to become"

  2. #2
    SitePoint Evangelist escapedf's Avatar
    Join Date
    May 2002
    Location
    Cape Town
    Posts
    458
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i have the solution for anyone wanting to know!add this line to js file: $('.toggleDiv').slideUp(options.speed, options.easing); above "var toggleClick = $(this);"add the class .toggleDiv to each div element that holds your content and you're done.
    "have the courage to follow your heart and intuition. They somehow already know what you truly want to become"


Bookmarks

Posting Permissions

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