I have a HTML table as shown in http://jsfiddle.net/Lijo/auny3/ . The table has 10 columns – divided into three col groups. I need to hide/show the colgroup named “Associate Info” (including its rows data) using buttons “Show Associate” and “Hide Associate”.
What is the best way (in terms of performance) for doing this using jQuery?
Please answer if you have a better answer than http://jsfiddle.net/Lijo/auny3/8/
Note: I am generating the table using ASP.Net GridView as given in
http://www.sacdeveloper.com/Community/Articles/tabid/86/ctl/ArticleView/mid/458/articleId/1/Group_columns_in_an_ASPNet_Gridview.aspx
Reference:
Selected Answer

I have generalized the idea provided by @Pioul. Hence please upvote for @Pioul also if you like this answer. This generalized approach is available in http://jsfiddle.net/Lijo/UqdQp/10/
References:
Finding column index using jQuery when table contains column-spanning cells
Select table cells based on the value in the cell
CODE