I have a table which gets data from backend and is populated in frontend using a loop and then make a datatable for it , but i have issue that in datatable search box the row can be searched with id too which is for development purpose only and we want it should not be used to search , i made a column for id at index 0 and give its visible to false. I paste this code in datatable code
"columnDefs": [
{
"targets": [0],
"visible": false,
"searchable": false
}
]
While visibility false is working fine still the searchable is not working , how can i stop row to be searched by that id.
I tried to ask chatgpt which give me this code which when didnt work i refer to datatable documentation which says to do same thing, i was expecting to find the reason why my code is not working and to fix it.
Tech is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.