Forums

  • # February 21, 2013 at 2:04 pm

    Hi,
    I m creating a dropdown menu with jquery which is working fine on two clicks however if you click on the link the third time if slides up and down itself. Can you tell me what mistake I m making and how to fix this. I dont want to add any more classes or ids in the markup. I m new to jquery so an explanation would be very helpfull.
    here is the code..

    < !DOCTYPE>




    # February 21, 2013 at 2:50 pm

    Thanks jshjohnson for writing the codepen and thanks a lot JoshBlackwood , but since I m learning jquery , if you could please explain a little(in my script) WHY when you click on the link third time it slides up and down itself , would very helpfull for me to understand.

    # February 21, 2013 at 9:57 pm

    You are awesome Josh , you explained that really well, now I have a better understading of it, all thanks to you. And I have one more question in javascipt but I’ll create a new thread for it.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

icon-anchoricon-closeicon-emailicon-linkicon-logo-staricon-menuicon-nav-guideicon-searchicon-staricon-tag