I want to hide some columns in a dataTable(e.g id,serial),the columns will be rendered because javascript need access the value of the columns. Any idea?
You can use display: none
or visibility: hidden
. You can find the difference in here: What is the difference between visibility:hidden and display:none?
Whatever you use, you will have access with javascript to those elements.
Also you can find here a interesting point of view regarding the usage of display:none
.