Sort by hidden column, filter by display column
Sort by hidden column, filter by display column
![smason](https://secure.gravatar.com/avatar/188da6f53d7a2ec1aa5efe1d1c0cd5e8/?default=https%3A%2F%2Fvanillicon.com%2F188da6f53d7a2ec1aa5efe1d1c0cd5e8_200.png&rating=g&size=120)
I know I need to use this: https://datatables.net/reference/option/columns.render
but there are no examples on there of what the HTML has to look like? My data tables are not generated by JSON, they are created from a regular HTML table. What attributes do I need to include in my table cells?
This discussion has been closed.
Answers
I found out that I can just use the data-sort attribute on the <td> element?
Like on the following:
I found the anser here: https://stackoverflow.com/questions/7668047/how-can-i-get-jquery-datatables-to-sort-on-hidden-value-but-search-on-displayed