Skip to content Skip to sidebar Skip to footer

Datatable - Multiple Tables On Same Page, But Only One Is Responding

I have three datatables on my page: -- table #1--
-- table #2--

Solution 1:

You can use tables() API method as shown below:

$('#top_search').on( 'keyup', function () {
   table.tables().search( this.value ).draw();
});

table.tables().buttons().container()
   .appendTo( '.button-holder' );

See updated jsFiddle for code and demonstration.


Post a Comment for "Datatable - Multiple Tables On Same Page, But Only One Is Responding"