I just want to replace one element with another list of elements, I cannot find a way to do this. Where dynamicContentHtmlsis the list of elements, and elementis the one to be replaced.
My experimental code:
int i=0;
for (Element element: dynamicContents){
element.append(dynamicContentHtmls.get(i));
i++;
}
source
share