How to Create Filters using jQuery
In this article, you will learn How to Create Filters using jQuery. Example:- Method of Filter Tables
…<html>
<head>
<title>Filter Table<title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("#myInput").on("keyup", function() {
var value = $(this).val().toLowerCase();
$("#myTable tr").filter(function() {
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
});