toggles-accordions.html

1 reply · opened Nov 13, 2021

IivcidevelopersNov 13, 2021

Hi,
I am using the accordian, specifically the one: **With Background **on toggles-accordions.html

I am using the accordian in an ajax page, so when the ajax reloads, the accordian click no longer works. I tried searching for the javascript function that sets the accordian so I can call the script when the ajax refresh ends.

Can you tell me which function is called to make this accordian work so I can call it or use a script that "activates" the accordian?

SSemicolon WebSTAFFNov 15, 2021

Hello,

You can simply use the following code:
[ch_pre]SEMICOLON.widget.accordions({ parent: $('#selector') });[/ch_pre]

The $('#selector') is the Parent Container where the Accordion is included, so the Accordion is initialized in that specific container. Else, you can simply call:
[ch_pre]SEMICOLON.widget.accordions();[/ch_pre]

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard