I am using jQuery DataTables 1.10.9 and jQuery 1.8.3. I'm trying to programmatically search in that, but without success.
I already tried:
function applyFilter(filter) {
    $("#dataTable").filter(filter);
}
and
function applyFilter(filter) {
    $("#dataTable").fnFilter(filter);
}
                Use search() API method to perform the search, see the code below:
function applyFilter(filter) {
    $('#dataTable').DataTable().search(filter).draw();
}
                        $("#dataTable").dataTable().fnFilter('something')
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With