Remove Active Class on second click

Right now I have a menu/sub menus that I am adding active classes to on click. I would like to remove the active class if I click the same menu Item twice. My initial thought was to just toggle the active class in jQuery but that does not seem to work. Any thoughts?? Thank you.