Bootstrap 3 Tutorial
The Bootstrap framework lacks a filtering component. However, we may utilize jQuery to filter and search for elements.
Conduct a case-insensitive search for elements in a table.
Type something in the input field to search the table for first names, last names or emails:
Example explained: We use jQuery to loop through each table row and see whether any text values match the value of the input field. The toggle() method conceals any rows (display:none) that do not match the search. We change the text to lower case using the toLowerCase() function, making the search case insensitive (search permits “john”, “John”, and even “JOHN”).
Conduct a case-insensitive search for items in a list.
Use a case-insensitive search for items in a dropdown menu.
Use a case-insensitive search for text within a div element:
CodingAsk.com is designed for learning and practice. Examples may be made simpler to aid understanding. Tutorials, references, and examples are regularly checked for mistakes, but we cannot guarantee complete accuracy. By using CodingAsk.com, you agree to our terms of use, cookie, and privacy policy.
Copyright 2010-2024 by Refsnes Data. All Rights Reserved.