JSFiddle - React, Tailwind, and code Playground
by Sivasakthi Chandrasekaran
HTML
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.12/css/jquery.dataTables.min.css">
<script src="https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js"></script>
<table id="example" class="display" cellspacing="0" width="100%">
<thead>
<tr>
<th>Name</th>
<th>Position</th>
<th>Salary</th>
</tr>
</thead>
</table>
CSS
.dt_col_hide{
display: none;
}
JavaScript
var inputData = [
["Prakash", "Software Analyst", 5000],
["Akshay", "Software Analyst", 6000]
]
var exampleTable = $('#example').DataTable( {
"data": inputData,
"columnDefs": [
{
"targets": [1,2],
"sClass": "dt_col_hide"
}
]
} );