Thanks!
Your answer was a good starting point for me.
Eventually I came to the solution with a for loop to add a class to all child elements inside the repeating group:

const repeatingGroup = document.getElementById(“rg”);
if (repeatingGroup.hasChildNodes()) {
let children = repeatingGroup.childNodes;
for (let i = 0; i < children.length; i++) {
children[i].setAttribute(‘class’, ‘rg-item’);
}
}

1 Like