Script not working
Script not working

Hello,
My script does not seem to work correctly. I would like to show 100 entries but the script doesn`t seem to work. Do I need to change something else?
Many Thanks
<script>
$(document).ready(function(){
$('#dtBasicExample').DataTable({
rowReorder: true
responsive: true
fixedColumns: true
});
$('#dtBasicExample').DataTable( {
rowReorder: true
responsive: true
fixedColumns: true
"dom": 'ilrftip',
} );
$('#dtBasicExample').dataTable( {
"pageLength": 100
"dom": 'ilrftip',
} );
$(document).ready(function() {
$('#dtBasicExample').DataTable( {
initComplete: function () {
this.api().columns().every( function () {
var column = this;
var select = $('<select><option value=></option></select>')
.appendTo( $(column.footer()).empty() )
.on( 'change', function () {
var val = $.fn.dataTable.util.escapeRegex(
$(this).val()
);
column
.search( val ? '^'+val+'$' : '', true, false )
.draw();
} );
column.data().unique().sort().each( function ( d, j ) {
select.append( '<option value="'+d+'">'+d+'</option>' )
} );
} );
}
} );
} );
</script>
This discussion has been closed.
Answers
Guessing you are getting the error Cannot reinitialise DataTable. Combine all of your initialization options into one call to
$('#dtBasicExample').DataTable( { ... } );
.Kevin