Datatable search select

Datatable search select

jasmine825jasmine825 Posts: 5Questions: 5Answers: 0
$(document).ready(function() { var table = $('#table_id').DataTable(); $("#table_id tfoot th").each( function ( i ) { var select = $('') .appendTo( $(this).empty() ) .on( 'change', function () { table.column( i ) .search( $(this).val() ) .draw(); } ); table.column( i ).data().unique().sort().each( function ( d, j ) { select.append( ''+d+'' ) } ); } ); } );

I used the same code in the datatable website but i didn't get the bottom input search boxes. Am I missing something?

This discussion has been closed.