Simple Toggle with Hiding Others

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:

  1. $(".note").click(function () {
  2. $(".note_active").removeClass(".note_active");
  3. $(this).toggleClass("note_active");
  4. });
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!