Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Senior Member Hitch - CP's Avatar
    Join Date
    Jun 2009
    Location
    London
    Posts
    120
    Member #
    19164
    Hey Guys,

    The page I am working on is here: http://collossalpixe...rnament-today/#

    On the right sidebar (#sidebar2) I am trying to create a jQuery toggle to show/hide a div - the toggle is to be an image (the down arrow - .toggle-trigger).

    I have tried many different ways, even copying an example from the jQuery site (.toggle() jQuery API ) but this didn't work either which was a surprise.

    Any ideas?

    Many Thanks,
    Ali
    Ali Hitch

    Portfolio & Tutorial Site
    www.alihitch.com

  2.  

  3. #2
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    What it should be is:
    Code:
    $(".toggle-trigger").toggle(function() {
        $(".item-to-hide-selector").hide("fast");
    }, function() {
        $(".item-to-hide-selector").show("fast");
    });


Remove Ads

Posting Permissions

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

Search tags for this page

wordpress toggle trigger

Click on a term to search for related topics.
All times are GMT -6. The time now is 07:15 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com