Elementor Accordion

  accordion, elementor, javascript

I have placed an accordion widget on Elementor pro and then I have a button to change its content with javascript:

var foo = document.getElementById("IDBOX").innerHTML;
foo = foo.replace("AAA", "AAA");
document.getElementById("IDBOX").innerHTML = foo;

After the button is pressed, the accordion doesn’t open anymore.
The html portion before and after javascript runs is exactly the same.

Source: Ask Javascript Questions

LEAVE A COMMENT