' ); } ); /* DataTable init */ var table = $('#smlouvy').DataTable({ "order": [[ 0, "desc" ]], "pageLength": 25 }); /* Apply the search */ table.columns().every( function () { var that = this; $( 'input', this.footer() ).on( 'keyup change', function () { if ( that.search() !== this.value ) { that .search( this.value ) .draw(); } }); }); });