I have a table. It has MULTI ROWS.
each row has eigth <td>.
each <tr> and <td> in my table does "NOT" have and ID nor a CLASS ..
hence:
<table id="dummytable">
<thead>
<tr>
<th>head 1</th>
<th>head 2</th>
<th>head 3</th>
<th>head 4</th>
<th>head 5</th>
<th>head 6</th>
<th>head 7</th>
<th>head 8</th>
</tr>
</thead>
<tr>
<td>one</td>
<td>two</td>
<td>three</td>
<td>four</td>
<td>five</td>
<td>I WANT TO GET THE CHANGES HAPPENING IN THIS TEXT</td>
<td>seven</td>
<td>eight</td>
</tr>
<tr>
<td>one</td>
<td>two</td>
<td>three</td>
<td>four</td>
<td>five</td>
<td>I WANT TO GET THE CHANGES HAPPENING IN THIS TEXT</td>
<td>seven</td>
<td>eight</td>
</tr>
<tr>
<td>one</td>
<td>two</td>
<td>three</td>
<td>four</td>
<td>five</td>
<td>I WANT TO GET THE CHANGES HAPPENING IN THIS TEXT</td>
<td>seven</td>
<td>eight</td>
</tr>
<tr>
<td>one</td>
<td>two</td>
<td>three</td>
<td>four</td>
<td>five</td>
<td>I WANT TO GET THE CHANGES HAPPENING IN THIS TEXT</td>
<td>seven</td>
<td>eight</td>
</tr>
...and so on and so forth....
</table>
I want to get the changes in the text in one of the td of each row, as you can see in the example.
my starting code is like this
$('td:nth-child(3)').each(function() {
$(this).closest("tr").find('td:eq(5)').change(function(){
console.log('HELLO');
});
});
but nothing is happening. it doesn't log anything in the console