Search is not working for nested table?

Search is not working for nested table?

AhsanKamalAhsanKamal Posts: 2Questions: 1Answers: 0
edited February 2023 in Free community support
var table = $('#tblConcepts').DataTable({
        'responsive': true
    })
    var state = table.state.loaded();
    if (state && state.search.search !== '') {
        var colSearch = state.search;

        if (colSearch.search) {
            $('input[type="search"]').val(colSearch.search);
        }
        table.page(table.page()).draw('page');
    }
    $('input[type="search"]').on('keyup search input paste cut', function () {
       var data = table
            .search(this.value)
            .draw();
    });

Edited by Kevin: Syntax highlighting. Details on how to highlight code using markdown can be found in this guide

Answers

Sign In or Register to comment.