Callback by StateSave clicked filter button
Callback by StateSave clicked filter button
yogi77
Posts: 1Questions: 1Answers: 0
Hi Guy's
I use the "stateSave" option and filter buttons.
The buttons have a background change when i click it.
$('#documents').DataTable({
"stateSave": true,
"stateDuration": -1,
});
var tabledocuments = $('#documents').DataTable();
$('#doc').click(function () {
tabledocuments.columns(2).search("Dokument").draw();
$(this).css('background-color','red');
$('#pic').css('background-color','black');
});
$('#pic').click(function () {
tabledocuments.columns(2).search("Bild").draw();
$(this).css('background-color','red');
$('#doc').css('background-color','black');
});
});
when i coming back to the table, is the button no longer red, the filter is correct.
can i use the callback function to set this button red?
thanks for your help and sorry for my bad english
This discussion has been closed.