JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://code.jquery.com/jquery-1.12.0.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.11/css/dataTables.bootstrap.min.css">
<script src="https://cdn.datatables.net/1.10.11/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.10.11/js/dataTables.bootstrap.min.js"></script>
<script src="https://cdn.datatables.net/responsive/2.0.2/js/dataTables.responsive.min.js"></script>
<link rel="stylesheet" href="https://cdn.datatables.net/responsive/2.0.2/css/responsive.dataTables.min.css">
<body>
<div class="container">
<div class="panel panel-info">
<div class="panel-heading">
Test DataTables
</div>
<div class="panel-body">
<table id="example" class="table table-striped table-bordered dt-responsive" cellspacing="0" width="100%">
<thead>
<tr>
<th>First name</th>
<th>Last name</th>
<th>Position</th>
<th>Office</th>
<th>Age</th>
<th>Start date</th>
<th>Salary</th>
<th>Extn.</th>
<th>E-mail</th>
</tr>
<tr>
<th><input type="text" placeholder="First name..." /></th>
<th><input type="text" placeholder="Last name..." /></th>
<th><input type="text" placeholder="Position." /></th>
<th><input type="text" placeholder="Office..." /></th>
<th><input type="text" placeholder="Age..." /></th>
<th><input type="text" placeholder="Start date..." /></th>
<th><input type="text" placeholder="Salary..." /></th>
<th><input type="text" placeholder="Extn. ..." /></th>
<th><input type="text" placeholder="E-mail..." /></th>
</tr>
</thead>
<tfoot>
<tr>
<th>First name</th>
<th>Last name</th>
<th>Position</th>
<th>Office</th>
<th>Age</th>
<th>Start...
CSS
thead input, tfoot input {
width: 100%;
padding: 3px;
box-sizing: border-box;
}
JavaScript
$(document).ready(function() {
$('#example tfoot th').each( function () {
var title = $(this).text();
$(this).html( '<input type="text" placeholder="Search '+title+'" />' );
} );
// DataTable
var table = $('#example').DataTable({
"responsive": true,
"autoWidth": true,
"columnDefs": [
{ responsivePriority: 1, targets: 0 },
{ responsivePriority: 2, targets: -1 }
],
"orderCellsTop": true
});
});