Would it be possible to filter a row based on its class, not the column contents?
Would it be possible to filter a row based on its class, not the column contents?
lisota
Posts: 1Questions: 1Answers: 0
I have an existing table where the rows have classes like the following:
<tr class="b2b"></tr>
<tr class="b2c"></tr>
<tr class="b2b b2c"></tr>
Rows may have more than one class. I'd like to filter the rows using a select box, based on the contents of these row classes, rather than putting that data into hidden columns. Essentially the select box would build its options list based on the content of these classes.
Does anyone have an example of something similar?
This discussion has been closed.
Answers
If that class will move into some html element into the td (see fifth column here http://yadcf-showcase.appspot.com/DOM_source.html) then with a little bit of additional work it will be possible to add to my yadcf plugin