How-To Filter Table by Cell Value?
How-To Filter Table by Cell Value?
I have a checkbox above my table that needs to provide additional filtering so when selected it hides all the rows that meet a condition (one column, date type). What seemed easiest was to simply add a CSS class to these rows that would make them hidden, or remove this class when done. Should be straightforward, but I couldn't get it to work, particularly, I couldn't use jQuery's addClass() method for some reason?
Attempt #1: http://paste.ubuntu.com/13582216/
Attempt #2: http://paste.ubuntu.com/13582325/
Could someone shed some light on what I'm doing wrong? I know it shouldn't be this complicated, but damn. And I know I could just build this with jQuery and loop through all the rows, but I wanted to take advantage of the API.