Filtering / tags
This snippet searches for tagged elements (using a data-tags attribute), builds a clickable tag list, and enables filtering based on the tags clicked.
Demo and download
- This code works out of the box for all modern browsers including IE >= 10.
- You do not need to run the code on a web server. Opening the index.html file from your local machine/filesystem in a web browser will result in a fully working demo.
- The demo and download package includes the HTML5 boilerplate from https://html5boilerplate.com.
The jQuery version has the lowest additional overhead if you are using jQuery anyway.
You are free to use the Filtering/tags Snippet code, with the exception of any photographic images included for demonstration purposes, under the MIT license. If further development or support is required, on a commercial basis, then contact me.