Where to put in this to disable checkboxes in colVis?

Where to put in this to disable checkboxes in colVis?

erieri Posts: 1Questions: 1Answers: 0
edited October 2014 in Free community support

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.