Using radio buttons for filters
Using radio buttons for filters
My datatable is filtering just fine, but the table has 2 columns where the data is checkboxes and I would like to be able to filter the individual columns by whether or not they are checked. I can manually enter into a text box "TRUE" or "FALSE" but I would like to use radio buttons to select the values plus a third for "ALL".
I've tried
[code]
$("thead input:radio").change(function(i){
oTable.fnFilter(this.value, $("thead input").index(this));
});
[/code]
I can make the radio buttons search globally, but I want it on a per-column basis. Can anyone offer any guidance?
I've tried
[code]
$("thead input:radio").change(function(i){
oTable.fnFilter(this.value, $("thead input").index(this));
});
[/code]
I can make the radio buttons search globally, but I want it on a per-column basis. Can anyone offer any guidance?
This discussion has been closed.
Replies
The issue I was having was that having other inputs (the radio buttons) within the header throws off the whole process and eliminating those made it work as expected.