Level 33
Hello @ikram_aurelie
I could not understand how you are implementing the data table code in your code
can you share a complete file
I'm trying to print the selected rows in a datatable but i can't manage to make the buttons appear i literally tried everything
$('[data-ride="datatables"]').each(function() {
//var table = $(this).DataTable();
$(this).on( 'click', 'tr', function () {
$(this).toggleClass('selected');
} )
var tab = $(this).DataTable( {
"dom": 'Bfrtip',
"bProcessing": true,
select:true,
"sDom": "<'row'<'col-sm-6'l><'col-sm-6'f>r>t<'row'<'col-sm-6'i><'col-sm-6'p>>",
buttons:[ "print"]
Please or to participate in this conversation.