Where to put in this to disable checkboxes in colVis?
Where to put in this to disable checkboxes in colVis?
eri
Posts: 1Questions: 1Answers: 0
Hi! I am completely new here and I am at the very begin to explore datatables.
I want to disable checkboxes after checking a given number.
Where and how can I apply this in ColVis:
// a maximum of 8 checkboxes is checkable:
$(".ColVis_collection input:checkbox").click(function() {
var bol = $("input:checkbox:checked").length >= 8;
$("input:checkbox").not(":checked").attr("disabled",bol);
});
Can you help me, please!
Erich
This discussion has been closed.