Wie deaktiviere ich eine Suche / einen Filter für eine bestimmte Spalte in einer Datentabelle?

Meine Datentabelle hat 5 Spalten und ich muss die Filterung für die 3., 4. und letzte Spalte deaktivieren.

bitte hilfe !!!

dies ist das Javascript:

<script type="text/javascript" language="javascript" class="init">
        $(document).ready(function() {

            // Setup - add a text input to each footer cell
            $('#example tfoot th').each( function () {
                var title = $('#example thead th').eq( $(this).index() ).text();
                $(this).html( '<input type="text" placeholder="Search '+title+'" />' );
            } );

            // DataTable
            var table = $('#example').DataTable();

            // Apply the search
            table.columns().eq( 0 ).each( function ( colIdx ) {
                $( 'input', table.column( colIdx ).footer() ).on( 'keyup change', function () {
                    table
                        .column( colIdx )
                        .search( this.value )
                        .draw();
                } );
            } );
        } );
</script>

Antworten auf die Frage(2)

Ihre Antwort auf die Frage