Script not working

Script not working

ArielisArielis Posts: 4Questions: 3Answers: 0
edited October 2020 in Free community support

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>   

Answers

This discussion has been closed.