Simple Toggle with Hiding Others
I have some toggling set up, but I'd like to make it so when you toggle one, it resets all the others.
This is what I've been trying:
- $(".note").click(function () {
- $(".note_active").removeClass(".note_active");
- $(this).toggleClass("note_active");
- });
That doesn't work. However, when I change removeClass() to hide(), it hides the correct things (i.e things that are "active")
Thank you for your help!