Quantcast
Channel: Free community support — DataTables forums
Viewing all articles
Browse latest Browse all 35380

Where to put in this to disable checkboxes in colVis?

$
0
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


Viewing all articles
Browse latest Browse all 35380

Trending Articles