Thanks for the reply Richard!
This is a quick prototype, so for the moment I'm using the
ColumnManager plugin - 
http://p.sohei.org/stuff/jquery/columnmanager/demo/demo.html
It seems to simplify the process a bit, though it's not exactly what
I'm looking for
-rolfsf



On Aug 12, 6:21 pm, "Richard D. Worth" <rdwo...@gmail.com> wrote:
> Unfortunately you have to get the columns by selecting the n-th cell in each
> row. If you're going to be doing lots of toggling, would be best to add a
> class to each, like col1, col2, col3; either in the generated html, or on
> document.ready, so you're not searching over and over, especially if it's a
> large table. Or at the very least, cache the jQuery objects that contain
> each column of cells, the results of your queries, if the table isn't going
> to change.
> - Richard
>
> On Wed, Aug 12, 2009 at 3:17 PM, rolfsf <rol...@gmail.com> wrote:
>
> > I've got a table in which I've set up some column groups.
> > <colgroup class="location">
> >    <col></col>
> > </colgroup>
> > <colgroup class="year">
> >    <col class="this"></col>
> >    <col class="that"></col>
> >    <col class="that"></col>
> >    <col class="that"></col>
> > </colgroup>
> > <colgroup class="year">
> >    <col class="this"></col>
> >    <col class="that"></col>
> >    <col class="that"></col>
> >    <col class="that"></col>
> > </colgroup>
> > ...
>
> > Ideally, I'd like to be able to toggle the visibility of the <col
> > class="that"> - can I select them as cols in jquery, or do I need to
> > get at them via the rows?
>
> > Thanks!

Reply via email to