Sometimes require to show and hide HTML table columns dynamically.
You can easily hide a column using CSS nth-child selector. But with dataTables it not works properly.
DataTables already provided a method for this.
In this tutorial, I show how you can dynamically show and hide multiple columns in DataTables.