Hi everyone,
I am trying to add two buttons, “Expand All” and “Collapse All” for my accordion page. So far I can do “collapse all” with this code
(function($){
$(’#collapse-all’).on(‘click touchstart’, function(){
$(’.x-acc-header.x-active’).trigger(‘click’);
});
})(jQuery);
However, I cannot make the “Expand All” button work.
Can someone help me out here?
Thanks