I have a table with has 10 columns and which is created using PHP following a search of an SQL database. What I’d like to be able to do is allow the user to be able to hide certain columns, possibly by clicking somewhere on the screen, i.e.
clicks button A: columns 1 – 3 are collapsed/hidden
clicks button B: columns 4 – 7 are collapsed/hidden
clicks button C: columns 8 – 10 are collapsed/hidden
I have been trying to research this and seems it could be done using the COL tag and setting visibility to collapse but I’m not sure whether this is the best way of doing it or even if it will work. Would appreciate any help or advice on how to go about it.
Thanks in advance.