I am having trouble with this specific section of my ejs file where the collapse feature is not functioning correctly. Can someone please assist me?
<% for(var i=0;i<data.length;i++){%>
<div id="content">
<p><%=data[i].webTitle%></p>
<button class="btn btn-primary" type="button" data-toggle="collapse" data-target="collapseOne"+<%i%> aria-expanded="false">
Button with data-target
</button>
<div class="collapse" id="collapseOne"+<%i%> >
<div class="card card-body">
<p><%=data[i].fields.bodyText%></p>
</div>
</div>
<% } %>