jquery wirh datatable - which column was clicked

jquery wirh datatable - which column was clicked

I have a table, using datatable, and when click the link, I need to know which column was clicked and know the value of first column


jQuery





$(function() {

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

});