I have a button that apply filter to jquery datatable
$(\"#buttonFilter\").button().click(function() {
if (lboxColor.val() != null) {
For those who are interested, this is a concrete usecase.
/**
* Select all the elements of the datatable which match the current user
* search (or all if no search).
*/
function dtable_selectAll()
{
idTable = 'myDataTable';
var rows = $('#' + idTable).dataTable()
.$('tr', {"filter":"applied"});
var oTT = TableTools.fnGetInstance(idTable);
$(rows).each(function (index, el){
oTT.fnSelect(el);
})
}
Hope it helps.