Make hidden-* and visible-* work on table elements