DataTables logo DataTables

via Ad Packs
Filter with multiselect
  • m19m19
    Posts: 3
    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
    oTable.fnFilter($("#employee option:selected").text())

    But the second part won't work, when I do
    oTable.fnFilter($("#workType option:selected").text())
    it is filtering Option1Option2Option3Option4, wich ofcourse never exists.
This discussion has been closed.
← All Discussions

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Support

Get useful and friendly help straight from the source.