this question was posted several times and i looked at many solutions.
My Problem:
I want to execute setAccordionActiv(false)
after the DOM is loaded.
function setAccordionActiv(paramActiv) {
if(paramActiv) {
$(".aui-toggler-content-wrapper").show();
} else {
$(".aui-toggler-content-wrapper").hide();
}
}
aui-toggler-content-wrapper
is part of AUI which is used in Liferay.
I tried using:
Another document ready() because they should be executed serialized
Answers from this Question: forcing a jQuery ready block to run after all other ready blocks
Those are the answers in most Questions.
However none worked for me.
On the contrary alert()
did work so aui-toggler-content-wrapper
must be the reason.
If i execute setAccordionActiv(false)
later for example via button click it does work.
Any help is appreciated.