table.columns().every method not supported

table.columns().every method not supported

datamasterdatamaster Posts: 2Questions: 2Answers: 0

Hello, I have this code included but i get a browser error Webpage error details

Message: Object doesn't support this property or method
Line: 70
Char: 6
Code: 0

Here is the code:

    table.columns().every( function () {
    var that = this;

    $( 'input', this.footer() ).on( 'keyup change', function () {
        if ( that.search() !== this.value ) {
            that
                .search( this.value )
                .draw();
        }
    } );
} );

Answers

  • allanallan Posts: 63,791Questions: 1Answers: 10,513 Site admin

    Sounds like you are using an old version of DataTables. columns().every() was introduced in 1.10.6.

    Allan

This discussion has been closed.