I have one ui:repeat component and inside that ui:repeat there is one div which is using in my javascript code. I have to dynamically change this div id on each ui:repeat call. how can i make it possible?
Please find the below code for your reference.
Xhtml Code
<ui:repeat var="id1" value"#{somethingbean.some"} id="repeaterId" varStatus="rowStatus"
rendered="somethingbean.some.someisthere">
<fieldset class="mock">
<legend></legend>
<div id="idToChange">
.....................................................
.............................................................
</div>
</fieldset>
</ui:repeat>
JS Code
function loadFunction() {
let varsome= document.getElementsById('idToChange');
}