Is it possible to filter a table based on the cell classes?
Is it possible to filter a table based on the cell classes?
I have a table that shows various ticks and crosses in it. A ticked cell has this HTML:
[code][/code]
And unticked:
[code][/code]
I would like to add a filter control as a checkbox, so that when the checkbox is checked, it filters all ticked cells in that column. Is this possible?
I've started with this:
[code]$('#chk-var1').click( function() {
oTable.fnFilter( this.value, 3 );
} );[/code]
But I don't know where to go from here. Any guidance would be much appreciated!
[code][/code]
And unticked:
[code][/code]
I would like to add a filter control as a checkbox, so that when the checkbox is checked, it filters all ticked cells in that column. Is this possible?
I've started with this:
[code]$('#chk-var1').click( function() {
oTable.fnFilter( this.value, 3 );
} );[/code]
But I don't know where to go from here. Any guidance would be much appreciated!
This discussion has been closed.
Replies
If there are any better solutions, I'd love to hear :)
Regards,
Allan