Get search data for select input

Get search data for select input

GlenLewisGlenLewis Posts: 7Questions: 5Answers: 0

I have a table that has input fields in the cells, I have added the data-search attribute for the search text.

How do I get a unique list of the search text that references the data attribute.

this is what I have used in the past:
column.data().unique().sort().each(function (d, j)
{

});

This returns the entire inner html of the cell. But I need the <td data-search="ABC"> value ABC.

How can I reference that value from the column data and get a unique list of it.

Answers

Sign In or Register to comment.