There isn’t a filterable component in Bootstrap. Nevertheless, we may search for and filter components using jQuery.
Filter Tables
Conduct a search for elements in a table without regard to case:
Example
To search the table for first names, last names, or emails, enter text in the input field:
==== table mukavu ====
jQuery
An explanation of the example: To see if there are any text values that match the value entered in the input field, we utilize jQuery to loop through each row of the table. The row (display:none) that does not match the search is hidden using the togglemethod. The text is converted to lower case using the toLowerCase() method, which makes the search case insensitive and accepts “john,” “John,” and even “JOHN”.
Filter Lists
Do the following to search a list of items without regard to case:
Example
==== table mukavu ====
Filter Anything
Conduct a search for text inside a div element without regard to case: