Jquery Search Filter Example

WebSolutionStuff | Aug-25-2021 | Categories : jQuery

In this small post i will so you jquery search filter example. here we will see how to search data using jquery filter. Many time we have requirment to filter or find specific data from html table so here i will i will show you how to create a filter using jquey.

Here, we will create table, search box for jquery search box. So, let's see how to search data using jquery filter.

<!DOCTYPE html>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

table {
  font-family: arial, sans-serif;
  border-collapse: collapse;
  width: 100%;

td, th {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;

tr:nth-child(even) {
  background-color: #dddddd;

<h2>Jquery Search Filter Example- Websolutionstuff</h2>
<input id="myInput" type="text" placeholder="Search Here..">

  <tbody id="myTable">
    <td>[email protected]</td>
    <td>[email protected]</td>
    <td>[email protected]</td>
    <td>[email protected]</td>

  $("#myInput").on("keyup", function() {
    var value = $(this).val().toLowerCase();
    $("#myTable tr").filter(function() {
      $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)


Output : 




You may also like :

Recommended Post

Featured Post

Follow us
facebooklogo github instagram twitter