that is simple, if you reference them by index. If you want to hide the first column, you would:
- $('#thetable tr').find('td:nth-child(1),th:nth-child(1)').toggle();
The reason i first selected all table rows and then both td's and th's that were the nth child is so that we wouldn't have to select the table and all table rows twice. improves script execution speed. Keep in mind, nth-child() is 1 based, not zero. don't get confused.