CSV to html – search

Search

It’s easy to implement basic search functionality. The search functionality search through the table with a a wildcard-filter in each visible column.

Original

SR.NAMEGENDERAGEDATE COUNTRY
1Dett2Female3616/08/2020Great Britain
2Nern Female1915/10/2017France
3KallsieMale2016/08/2016France
4SiuauFemale2121/05/2015Great Britain
5ShenniceMale2221/05/2016France
6ChasseFemale2315/10/2018France
7TommyeMale2416/08/2017United States
8DorcastFemale2521/05/2016United States
9AngeleeMale2621/05/2017Great Britain
10WilloomFemale2615/10/2019France

Search

To implment search functionality, you simply add search_functionality=”yes” to your shortcode. An input search field, a search button and a reset button will be added together with the table. If you push the reset button the data will be restored to show it’s initial data.

Shortcode
[csvtohtml_create source_type="guess" source_files="free_testdata_10rows.csv" search_functionality="yes"]
SR.NAMEGENDERAGEDATE COUNTRY
1Dett2Female3616/08/2020Great Britain
2Nern Female1915/10/2017France
3KallsieMale2016/08/2016France
4SiuauFemale2121/05/2015Great Britain
5ShenniceMale2221/05/2016France
6ChasseFemale2315/10/2018France
7TommyeMale2416/08/2017United States
8DorcastFemale2521/05/2016United States
9AngeleeMale2621/05/2017Great Britain
10WilloomFemale2615/10/2019France

If you search for 9, you will get this result (if using same data as above):

SR.NAMEGENDERAGEDATE COUNTRY
2Nern Female1915/10/2017France
9AngeleeMale2621/05/2017Great Britain
10WilloomFemale2615/10/2019France