Change Caption Accordion with JS
Posted: 28 May 2018
Hi,
it is possible, to change the Caption from an Accordion by Code (Displayform)?
Manuell i set the Title (or Caption?) to "old Caption" and the css-class named "cssAcc" and tried this code:
It displays the new Name, but the Accordion losts his functionality.
thx in advanced.
it is possible, to change the Caption from an Accordion by Code (Displayform)?
Manuell i set the Title (or Caption?) to "old Caption" and the css-class named "cssAcc" and tried this code:
Code: Select all
$(".cssAcc").html($(".cssAcc").html().replace(/old Caption/,"new Caption"));
thx in advanced.