Skip to content

chriswrightft/vanilla-js-filter-list

Repository files navigation

Vanilla JavaScript filter code

Add the script into your html file with the list you wish to filter, ideally at the bottom of the page just before the closing tag.

<script type="text/javascript" src="verboseES5.js"></script>

Call the filter function passing through the ID for the text input and the class name on all the list items.

<script>
	filterList('filterInput', 'collection-item');
</script>

Example

https://chriswrightft.github.io/vanilla-js-filter-list/index.html

About

Simple flist filter using JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •