We use jQuery to loop through each table rows to check if there are any text values that matches the value of the input field. The toggle method hides the row (display:none) that does not match the search. We use the toLowerCase() method to convert the text to lower case, which makes the search case insensitive (allows "homer", "Homer", and even "HOMER" on search).
-
Notifications
You must be signed in to change notification settings - Fork 0
aimeeaidanu/Filterable-Table
About
Bootstrap does not have a component that allows filtering. However, we can use jQuery to filter / search for elements.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published