I\'m trying to hide / show columns in a table based on users choices during runtime. I defined two CSS classes:
.hide { visibility: collapse; }
.show { visi
I think the better choice is to use colgroup on your table and modify the css attributes to show or hide a column or a set of columns. For example, you would hide the first five columns like below:
...
...
And you would modify the attribute by JQuery like below:
$("#filterTableColgroup").css('visibility', 'collapse');
- 热议问题