Search a table column without displaying it?
Search a table column without displaying it?
Hello!
So I'm creating a basic search engine page using datatables that brings in all the information through a MySQL database.
However datatables only searches as far as I can tell, columns inside <td></td> tags. My issue is I've got a column in the database I want to be able to search with datatables search bar but i don't want to display it simply because the contents can be over a paragraph long, making them not efficient in a list view of a database.
In short: how do I search a column in a datatables table without having to display it?
Answers
Nevermind I am very dumb and didn't do much research I found my answer and fixed it using this link
https://datatables.net/examples/basic_init/hidden_columns.html