I want to add the columns of a table
<table id="ejemplo" border="1">
<thead>
<tr class="encabezado">
<th>Campo 1</th>
<th>Campo 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>5</td>
</tr>
<tr>
<td>7</td>
<td>1</td>
</tr>
<tr>
<td>16</td>
<td>1</td>
</tr>
</tbody>
<tfoot>
<tr>
<th>Total</th>
<th>Total</th>
</tr>
</tfoot>
</table>
this data comes from an array, I must add in the array or I can add the table columns directly.