Вот сделал так но у меня весь текст скрыт
<?php
require('header.php'); ?>
<div class="content-wrapper">
<main class="content">
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<style>
#myTable tr{
display: none;
}
<body>
<p>text</p>
<input id='myInput' onkeyup='searchTable()' type='text'>
<script>
function searchTable() {
var input, filter, display, table, tr, i;
input = document.getElementById("myInput");
filter = input.value.toUpperCase();
table = document.getElementById("myTable");
tr = table.getElementsByTagName("tr");
for (i = 0; i < tr.length; i++) {
var text = tr[i].textContent.toUpperCase();
display = "";
if (filter && text.indexOf(filter) > -1 ) display = "table-row"
tr[i].style.display = display;
}
}
</script>
<table id="myTable">
<tbody>
<tr>
<td>Afghanistan</td>
<td>+93</td>
<td>Афганистан</td>
<td>Афганістан</td>
</tr>
<tr>
<td>Albania</td>
<td>+355</td>
<td>Албания</td>
<td>Албанія</td>
</tr>
</tbody>
</table>
<p>text</p>
</body>
</html>
</main>
<?php
require('sidebar.php'); ?>
</div><!-- /.content-wrapper -->
<?php require('footer.php'); ?>