Accordions after loading content with ajax
-
Hi there,
i am loading content of my custom taxonomy posts by ajax. I want to use your accordions.
But there is a problem with js which work only with originally generated DOM.
I duplicated your js file and tried to call it on AJAX success state.
$.getScript("/wp-content/themes/hsg/js/acc-2.js");
Some parts of code works. At least:
$('.js-accordion-item').removeClass('no-js');
But at the end of day ?? rest of code doesn’t. Is there a simpler way to make it work than codin it from scratch?
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Accordions after loading content with ajax’ is closed to new replies.