Filter based on selected item in drop down list

Filter based on selected item in drop down list

captainmoecaptainmoe Posts: 2Questions: 0Answers: 0
edited September 2010 in General
First let me say I love the DataTables plugin it has worked wonders on my tables, and made my life a whole lot easier!

I have a column in my table, each cell of that column has a drop down menu. Using html style formatting. Out of the however many options are in the drop down menu one is always marked as selected using html selected=selected.

What I want to be able to have the filter to consider the value of the selected option as the value of the cell in terms of filtering, and disregard everything else.

Is this possible? I'm not seeing how it can be done using just fnFilter().

If somebody could point me in the right direction I would greatly appreciate it :D

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    This example might help you out a bit for this: http://datatables.net/examples/api/multi_filter_select.html

    Allan
This discussion has been closed.