Is there a way for passing content as a td-element to a specific th-element? I have a dynamic table and need to assign the content under the right table header.
I have included pagination for the rows of the table. All the td-are assigned to "Ref.". But I need to assign {{score}} under "Score",...
<table class="table table-hover">
<thead id="header">
<tr id="tableHead">
<th>Ref.</th>
<th>Score</th>
<th>Title</th>
</tr>
</thead>
<tbody style="width: 100%">
{% for i in range (0,numofresults) %}
<tr id="cardmb3n{{i}}">
<td id="ref{{i}}"> </td>
<td id="score{{i}}"> </td>
<td>
<div>
<a id="header{{i}}" href=""</a>
<br>
<a id="hyperlink{{i}}" href="" target=_blank </a>
</div>
</td>
</tr>
</tbody>
{% endfor %}
</table>