Filter with multiselect
Filter with multiselect
Hello,
First of all: Great Plugin! I'm really enjoying working with this.
Now my questions: I have an Datatable and one dropdown and one multiselect.
The dropdown is a list of employees and the multiselect is a list of work they do.
Now I want the dropdown to be a filter (Show only what is selected) and I want to multiselect to show all of the chosen options: SHOW Option 1 AND Option 2 AND Option 3 AND Option 4.
The dropdown works fine when I do [code]oTable.fnFilter($("#employee option:selected").text())[/code]
But the second part won't work, when I do [code]oTable.fnFilter($("#workType option:selected").text())[/code] it is filtering Option1Option2Option3Option4, wich ofcourse never exists.
First of all: Great Plugin! I'm really enjoying working with this.
Now my questions: I have an Datatable and one dropdown and one multiselect.
The dropdown is a list of employees and the multiselect is a list of work they do.
Now I want the dropdown to be a filter (Show only what is selected) and I want to multiselect to show all of the chosen options: SHOW Option 1 AND Option 2 AND Option 3 AND Option 4.
The dropdown works fine when I do [code]oTable.fnFilter($("#employee option:selected").text())[/code]
But the second part won't work, when I do [code]oTable.fnFilter($("#workType option:selected").text())[/code] it is filtering Option1Option2Option3Option4, wich ofcourse never exists.
This discussion has been closed.