JSFiddle - React, Tailwind, and code Playground
by Mr sogata
HTML
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<div class="container">
<h2>The Utopian Supervisor</h2>
<p>Type something in the input field to search a supervisor detail</p>
<input id="filter" class="form-control" type="text" placeholder="Search..">
<br>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>Steem Account</th>
<th>Country</th>
<th>Discord account</th>
</tr>
</thead>
<tbody id="content">
<tr>
<td>arie.steem</td>
<td>Indonesia</td>
<td>arie.steem</td>
</tr>
<tr>
<td>podanrj</td>
<td>Indonesia</td>
<td>podan.rj</td>
</tr>
<tr>
<td>ruah</td>
<td>Phliphines</td>
<td>ruah</td>
</tr>
<tr>
<td>espoem</td>
<td>Czech Republic</td>
<td>espoem</td>
</tr>
</tbody>
</table>
</div>
JavaScript
$(document).ready(function(){
$("#filter").on("keyup", function() {
var value = $(this).val().toLowerCase();
$("#content tr").filter(function() {
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
});
});
});