I create a datatable with DataTables and my datatable has 29 columns. When I select responsive true and create last column of rows a button to show a dialog, button not work but when I set button in first column of rows its work!
My jquery file:
(function ($) {
$('button').on('click', function () {
alert('WOHOOO Work');
})
$('table').DataTable( {
dom: 'Bfrtip',
buttons: [
'copy', 'excel', 'print',
],
responsive: true,
} );
})(jQuery);
When I cleck responsive button (+), jquery build a <tr class="child">
, and my code not work because in first of load page my button not build. How can I fix this?