jQuery - Filters


jQuery Filters

You can employ jQuery to find and display particular elements on a web page.


Filter Tables

Search for items in a table without considering uppercase and lowercase letters:

Example explained: We use jQuery to loop through each table row to check if any text matches the input field value. The toggle() method hides rows (display:none) that don't match the search. We use the toLowerCase() DOM method to convert the text to lower case, making the search case insensitive (so "john", "John", and "JOHN" will all match).


Filter Lists

Search for items in a list without considering uppercase and lowercase letters:


Filter Anything

Search for text inside a div element without caring about uppercase or lowercase letters.