AdminLTE DataTable - Select Row / Select Row

1

I have a project in progress and I use AdminLTE for layout. I really liked it, but I have a question about the DataTable: How to apply functions to can select a row in the DataTable?

I've tried several tips like:

$('#example2 tbody').on( 'click', 'tr', function () 
{
    if ( $(this).hasClass('selected') ) {
        $(this).removeClass('selected');
    }
    else {
        table.$('tr.selected').removeClass('selected');
        $(this).addClass('selected');
    }
});

But nothing works.

Can anyone get it?

Thank you in advance

    
asked by anonymous 10.09.2018 / 12:17

0 answers