Toggel Accordion element

Question

I have added an accordion-element by WPBakery. Depending on an user input, I wish to open different parts of the accordion-element per PHP-script. The source code changes from

<div class="vc_tta-panel" id="GenBetrieb_FAQ_05" data-vc-content=".vc_tta-panel-body">

to

<div class="vc_tta-panel vc_active" id="GenBetrieb_FAQ_05" data-vc-content=".vc_tta-panel-body">

when an user clicks on one of the topics of an accordion-element. But how can I realize this by PHP-Code?

0
ASenna 2 years 2019-12-31T08:38:40-05:00 0 Answers 87 views 0

Leave an answer

Browse
Browse