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..
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.