How to use search with select elements within the table?

How to use search with select elements within the table?

goalie1998goalie1998 Posts: 1Questions: 1Answers: 0

In my table I have prefilled form data in select elements. Is there a way to allow the search methods - individual column searching (select inputs) and the general table search to only include the prefilled (selected) items?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,217Questions: 1Answers: 10,415 Site admin
    Answer āœ“

    There is currently no option for that in DataTables Iā€™m sorry to say. We can do live DOM sorting, which has an impact on filtering as well, but there is no way to limit the search to just the DOM selected values. Sorry.

    Allan

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    Similar to the example Allan posted, this also shows how to to the filtering: http://live.datatables.net/sazomuwi/1/edit

    Colin

This discussion has been closed.