mardi 13 mai 2014

jQuery - Adding and Removing selected classes


Vote count:

0




Codepen: http://ift.tt/RP46LM


I'm currently having an issue where I have a typical navigation menu setup and would like clicked on links to have a class added to them when clicked. However, I only want one link at a time to have this class on it. I've setup a codepen, and currently my code is making all the links posses this class, without removing it after the link is clicked on.


I'm new is jQuery/javascript so I apologize for this basic question.


Thank you for your help.



asked 1 min ago






Aucun commentaire:

Enregistrer un commentaire