Show/Hide columns with specific values in hidden input field
Show/Hide columns with specific values in hidden input field
Hi,
in my table every column header (except the first one) has an hidden input field named 'group'. I want to implement buttons to toggle the visibility of specific columns based on in which group they are. I'm stuck at finding the right column-selector to get all columns where e.g. the input field value is "Group1".
At the moment my buttons looks like this:
...
buttons: [
    {
        extend: 'columnToggle',
        text: 'Toggle Group1',
        columns: (?)
    }
]
...
I already tried a few things with jquery selectors, but i cant get it to work properly.
UPDATE: I have build a little test case with datatables live :
Testcase
Thanks for the help