How to specify an element inside a td to be filtered
How to specify an element inside a td to be filtered
jacobs
Posts: 2Questions: 1Answers: 0
Hello,
I have a table with cells, each <td> contains a <span> and a hidden <select>, now all I want is to filter on just the text inside the <span> not the whole content of the <td> which also contains the hidden <select> element.
I've been trying for a couple of days now on this forum, examples, googling, but couldn't find an answer, so please help
Thanks in advance
This discussion has been closed.
Answers
You can use the HTML5 data-* attributes - cell data
Take a look at the html code on that page
@ daniel_r Thanks for the reply, but that didn't answer my question.
I had seen the link you provided before, it's simply to provide DataTables additional info for filter/order operations, but it doesn't provide a way to tell DataTables to ignore this field or this element and exclude it from search.