Currently I store the data of a table in an array, in the following way, bringing the td, in what way can I bring a particular column?
var datos = [];
$("#table1 td").each(function(index) {//No se como traer solo el nombre
// alert($(this).text());
datos.push($(this).text());
console.log(datos);
});
<table id="table1">
<thead>
<tr>
<th>Nombre</th>
<th>Apellido</th>
</tr>
</thead>
<tbody>
<tr>
<td>Jorge</td>
<td>Casas</td>
</tr>
<tr>
<td>Juan</td>
<td>Perez</td>
</tr>
</tbody>
</table>
I currently return all the data in the table and I just need the name, In what way can I bring only the column name?