I'm using jQuery DataTables and I have a table which is generated using a foreach loop. In each row generated, 2 buttons are made with a different number added to a data attribute.
After the page loads, dataTables kicks in and renders the table. I have an onClick handler that responds to the buttons when clicked.
However, when I sort table columns that dataTables is capable of doing, the buttons simply do not respond to the onClick handler.
What can I do to prevent dataTables from causing the buttons to do nothing when either of the sorting columns are used?