I recently added a vertical accordion menu to my website but I'm having trouble trying to figure out how to close the headers on click. Here is the jquery code that should enable that function (but it doesn't):

Looks like you dont give enough info for anyone to help. Do you have a link to your site? All you've posted is the js. Where is the element that you're adding a class of active too? Where is the css associated with .active?