Get column id by clicking on the table footer cell
Get column id by clicking on the table footer cell

Hi,
I'm trying to get the column index by clicking in the relative footer column title.
The thing is that this is a fixed footer, hence the click event is triggered by the footer copy (the one used to keep the fixed position).
$('.dataTables_scrollFoot').on('click', 'td', function () {
var index = $(this).data('column-index');
console.log(index);
});
Unfortunately, no data is available on the fixed footer.
Do you have any suggestions to get the column index by clicking on a fixed footer?
Cheers,
Antonio
This discussion has been closed.