How to combine fnFilter results with checkboxes?
How to combine fnFilter results with checkboxes?
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]
[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.