filmov
tv
3 Steps to Develop jQuery Data Table with Search Filter

Показать описание
In this tutorial I will explain and show you how to develop your own jQuery Data Table with Search Filter from scratch. The data table quickly search and filter the table records with any input you enter in a text box.
Working:
-Takes user input
-Performs case-insensitive search i.e. “spider” or “SPIDER” or “Spider” are same
-Shows filtered table data
jQuery Methods Used:
- .keyup(handler) to detect keyup event of text input
- .filter() filter specific html elements based on a condition and return them
- .toggle() shows html elements on true else hides them
- .text() gets the text of a html element
- .val() gets the value of a html form element i.e. input, select and etc
- .toLowerCase() to convert a string to lower case
- .indexOf() returns the position/index of first occurrence of a given value in a string
Working:
-Takes user input
-Performs case-insensitive search i.e. “spider” or “SPIDER” or “Spider” are same
-Shows filtered table data
jQuery Methods Used:
- .keyup(handler) to detect keyup event of text input
- .filter() filter specific html elements based on a condition and return them
- .toggle() shows html elements on true else hides them
- .text() gets the text of a html element
- .val() gets the value of a html form element i.e. input, select and etc
- .toLowerCase() to convert a string to lower case
- .indexOf() returns the position/index of first occurrence of a given value in a string