Don't show non existing rows in other select

Don't show non existing rows in other select

stebarstebar Posts: 11Questions: 3Answers: 0

Hello,
Here is my code. If i choose an option in select list of first column, it filters and shows only correct rows. If i go to 2nd column and open "select" all options are displayed, even if they don't exist currently (after filtering). Can i populate list after i have applied filtering and display only existing?

This question has an accepted answers - jump to answer

Answers

  • stebarstebar Posts: 11Questions: 3Answers: 0

    Does anyone know if second select can be updated after filtering with the first one? Is this supported by DataTables?

  • allanallan Posts: 61,716Questions: 1Answers: 10,108 Site admin
    Answer ✓

    The select filters are external to DataTables, so you'd need to modify the code from the column filtering example that your code is based on.

    This is one I made earlier.

    Allan

  • stebarstebar Posts: 11Questions: 3Answers: 0

    Thank you Allan!

This discussion has been closed.