column hidding not working

column hidding not working

itassetsitassets Posts: 17Questions: 1Answers: 0

This is not working any clue?

        function hideColumns(hiddenCol){
            // hide columns in table
            console.log('hidding: ' + hiddenCol);
            $('#example').dataTable( {
                 "columnDefs": [
                 { "visible": false, "targets":hiddenCol }
                ]
            } );

        }

Answers

This discussion has been closed.