datatable - which column was clicked

datatable - which column was clicked

I had the following information on the forum datatable.
Now I need to know which column the User clicked, and need to get the value of the first column.




<tr>
   <td>4</td>
   <td>John Foster 4</td>
   <td><img entity_id= "4" class= "image-selector" src= 'imagens/grid_cancel.png' title= ''  /></td>
</tr>
             

$(
"#tablex tbody" ).on( "click" "td" function (event){
     alert($( this ).text());
});