Filter table using external anchors and data attributes

Filter table using external anchors and data attributes

therunetherune Posts: 1Questions: 0Answers: 0
edited August 2013 in General
Is it possible to have anchor links outside of the table and have them filter the table based on data attributes that I set on the TD tags? Basically I'd like to have a series of links that have category names that correspond to data attributes on TDs, when you click on a category it displays only the rows that fit the category.

For instance, a very simple example:

[code]
Category 1
Category 2
Category 3



Some data


Some data2


Some data3


[/code]

Edit:
I created a hidden row, I think this would be easier to maintain than a data attribute. With a hidden row, how can I use links outside of the table to filter what's in this row?

Thanks!
This discussion has been closed.