selction of one row in dataTable
selction of one row in dataTable
juju24
Posts: 6Questions: 2Answers: 0
i create a datatable in my application which use bootstrap and when i use this code to select one row i obteein any things
$('#users tbody').on('click', 'tr', function () {
if ( $(this).hasClass('selected') ) {
$(this).removeClass('selected');
}
else {
table.$('tr.selected').removeClass('selected');
alert( 'You clicked on s row' );
$(this).addClass('selected');
}
} );
any ypdates can be welcome
This discussion has been closed.
Replies
I'd suggest using Select if you want to do row selection.
Allan
please can you give me and example?
thank you i solve the problem
Of anyone else reading this thread, the examples are linked form the page I linked to above.
Allan