Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- var table = $('#example').DataTable();
- $('#example tbody').on( 'click', 'tr', function () {
- $(this).toggleClass('selected');
- } );
- $('#button').click( function () {
- alert( table.rows('.selected').data().length +' row(s) selected' );
- } );
- } );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement