Filter data using jQuery in Individual column searching (text inputs)

Filter data using jQuery in Individual column searching (text inputs)

emperordevil.guptaemperordevil.gupta Posts: 6Questions: 3Answers: 0

I want to filter the table data using jQuery, I have a function which add text/value to footer inputbox of DataTable, but the table data is not getting filtered.

This is my JS file

var table = '';
$(function () {
    table = $('#inbox-table').DataTable();  
});

//this is my custom js function
function showMySettings(settings_id) {
    $('#text_5').val('admin'); //text_5 is the textbox id of username coloum, which is adding 'admin' but not getting filtered
    table.column(5).visible(true); //this is working
    table.column(6).visible(false); //this is working
    table.draw();
//    table.ajax.reload();
}

When a user clicks on a button it fires jQuery function showMySettings on a onClick event.
I'm using Individual column searching (text inputs)
Any help would be greatly appreciated.
Thanks.

This discussion has been closed.