Hi,
I'm using this code to display a warning if filter is applied.
The reason is that the filter form may be toggle and I want the user see that filter is applied because stateSave keep the filter value in memory.
It is working fine when applying using the filter or do a search but how can I check on page load....
table7.on('search.dt', function() {
// check datatables search
if (table7.search(this.value) != "") {
$('#users-list_filter input').addClass('dfilter_applied');
} else {
$('#users-list_filter input').removeClass('dfilter_applied');
}
// check yadcf filters
if ( yadcf.exGetColumnFilterVal(table7, 0) != "" )
{
$('#users_7').show();
}
else {
$('#users_7').hide();
}
});
Also how can I echo / console.log the filter value (I mean the value used by the filter / search box, not the result)?
Thanks