This is the code to select
$('#example tr').on('click', function () {
var dato = $(this).find('td:nth-child(4)').html();
alert(dato);
});
works well when the table is loaded with hard data, for example:
<table id="example>
<thead>
<tr>
<th>Nombre</th>
<th>Apellido</th>
</tr>
</thead>
<tr>
<td>Juan</td>
<td>Perez</td>
</tr>
</table>
but when adding rows by ajax does not work.