I have the following function, which works to change the arrow of an accordion when it is active (open), arrow down to reverse up, and then return to the original state, but all arrows are affected, and not just the one I'm clicking at the moment, how can I solve this? I tried using this but it did not work for this situation:
function controlAccordeon() {
var accordeonTitle = $('.accordeon-open-title');
var angleDown = $('.fa-angle-down');
var angleUp = $('.fa-angle-up');
accordeonTitle.click(function() {
$(this).toggleClass('active');
angleUp.toggleClass('hide');
angleDown.toggleClass('hide');
});
}