I have a simple table of a format similar to following:
<table>
<thead>
<tr>
<th>Savings</th>
</tr>
</thead>
<tbody>
<tr>
<td>Savings
<button type="button" (click)="submit()">Click Here</button>
</td>
<td *ngFor="let data in items"><input type="text" [value]="data.savings"></td>
</tr>
<tr>
<td> [Similar to above row]</td>
</tr>
</tbody>
</table>
How do I properly copy the table with input values without jQuery maintaining row structure? I only care about rows data and not headers or cell name. I consulted Copy table rows to clipboard- copying only the first page but it copies the structure of data and not the input field value?