Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript SlideToggle not staying down

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #156489
    Brad Wrage
    Participant

    Hi Guys,
    I’m going to try at this one again.
    I’m trying to get a subnav to slide down by clicking on one of the top level links above it. My current problem is that by clicking on the of the links the sub-nav will quickly appear but then slide back up.

    http://codepen.io/anon/pen/tkgmx

    The jquery doesn’t seem to be working at all in the codepen, but you can get an idea for what i’m trying to do.

    Thanks.

    #156490
    chrisburton
    Participant

    So far from looking at your code, I don’t even see where the jQuery is supposed to trigger? You have a class of .nav-drop but I don’t see that in your markup.

    I sent this to you through Twitter but we can keep it here for progress.

    http://codepen.io/anon/pen/tkgmx

    #156491
    Brad Wrage
    Participant

    @chrisburton, ah my mistake meant to have .nav-items so the nav will hide and slide when a link is clicked.

    Still having issues locally though as you can see in my video:

    http://www.youtube.com/watch?v=DcvIwdleMFY&feature=youtube_gdata_player

    #156493
    chrisburton
    Participant

    I see that. It’s hard to guess what is happening. You could try moving your jQuery to the footer to see if that triggers any resolve to the problem.

    In developer tools, are you seeing any errors in the console?

    #156494
    Brad Wrage
    Participant

    No issues in the console…and the js is actually already in the footer.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.