JSFiddle - React, Tailwind, and code Playground
by piet23
HTML
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.13/css/jquery.dataTables.css">
<script src="https://cdn.datatables.net/1.10.13/js/jquery.dataTables.min.js"></script>
<table id="example" class="display" cellspacing="0" width="100%">
<thead>
<tr>
<th>City</th>
<th>Country</th>
</tr>
</thead>
<tfoot>
<tr>
<th>City</th>
<th>Country</th>
</tr>
</tfoot>
<tbody>
<tr>
<td>London</td>
<td>England</td>
</tr>
<tr>
<td>Dover</td>
<td>England</td>
</tr>
<tr>
<td>Berlin</td>
<td>Germany</td>
</tr>
</tbody>
</table>
JavaScript
$(document).ready(function() {
$('#example').DataTable({
search: {
regex: true,
smart: false
}
});
});