Hide column

Hide column

susersuser Posts: 68Questions: 18Answers: 0

I try to hide column but column not hide

i try this

 var myTable = $('#services_schdulue').DataTable({

                        "columnDefs": [{ "visible": false, "targets": [2, 3, 4] }
                        ]
                    });

also i try this

 var myTable = $('#services_schdulue').DataTable({});
   myTable.column(2).visible(false);

but nothing works

This discussion has been closed.