How to combine fnFilter results with checkboxes?

How to combine fnFilter results with checkboxes?

Tudor87Tudor87 Posts: 9Questions: 0Answers: 0
edited March 2014 in General
We have some cheboxes, they do their work but they overwrite while filtering and while checking two different boxes it will show only the last checked box.

[code]
$("#filters :checkbox").change(function(){
if($(this).is(":checked")) {
dataTable.fnFilter( "^"+ $( this).attr("val") + "$", $(this).attr("column"), true, true );
} else {
dataTable.fnFilter("", $(this).attr("column"), false);
}
} );
[/code]
This discussion has been closed.