Closing EA Accordion with a button click

[ad_1]

Hello, I have added an accordion, and for content type I have selected a template and it’s working fine.

What i’m trying to do now is have a button on the bottom of the template to close the accordion content.

I have added an elementor button with the id “close-content” and I was trying to use this piece of code that I found here, but I can’t seem to make it work.

jQuery(document).ready(function() {
    jQuery(".elementor-element-65723e9 .close-content").click(function() {
        jQuery("#close-content .eael-accordion-tab-title").click();
        return false;
    });
});

Can someone help me achieve this?

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer