I have implemented an accordion using "up" and "down" arrows. It works well, but when I click on the panel title again, the arrow does not change direction.
Here is the issue:
In my scenario, I have used "A" and "B" instead of the arrows. When the page loads, all panel titles display "A". Upon clicking on a panel title, "A" changes to "B". However, clicking on "B" again does not change it back to "A".
$('#leftMenu .panel-title a').click(function(){
$('#leftMenu .panel-title a').parent('.panel-title').removeClass('accordion-opened');
$(this).parent('.panel-title').addClass('accordion-opened');
});