I have a table with a lot of columns. I want to give users the ability to select the columns that will be shown in the table. These options will be checkboxes along with column names. So how can I hide / show table columns based on checkboxes?
Will every td in every line be hidden (using .hide ())? Maybe I can assign a flag value to the location of the column in the table. Therefore, the first flag means the first column, and so on. And then recursively hide that 'numbered' td on each line. Will this work?
jquery row show-hide
understack
source share