jQuery Toggle question/issue
Hello there,
For i am quite new to jQuery and more of a designer than a coder i ended up here :) I am trying to create a specific menu using jQuery where i want to toggle a clicked menu item. I used toggleClass to accomplish this. All fine and well, but what i want is that once i click a menu item, the previously clicked item should have the active state/class toggled off.. The menu is variable. Is anybody willing to help me with this? (I tried and tried and searched all over the internet, but i cannot find it... spent 5 hours trying to combine various selectors and if/else statements, but it did'nt work.. )
Thanks in advance :)