Thanks Jake, I did do a quick browse of the RSS feed but you're right I
should have done a search.

On 2/22/07, Jake McGraw <[EMAIL PROTECTED]> wrote:

Someone else asked this yesterday, and here is a possible solution:

http://www.monkeypuzzle.net/testfiles/jquery/Accordion_table/index_2.html

You may want to search the listserv in the future, you can get your answer
faster that way.

- jake


On 2/22/07, Carl Parrish < [EMAIL PROTECTED]> wrote:

> What I'm trying to do.
> When a thead is clicked I'd like for the tbody row group below it to
> become visable.
> So I have a table like this
> <table>
> <thead class="rowGroup"><th>First row group</th></thead>
> <tbody class="hidden">
>  <tr><td>1st Item in row group 1</td></tr>
> <tr><td>2nd Item in row group 1</td></tr>
> </tbody>
> <thead class="rowGroup"><th>Second row group</th></thead>
> <tbody class="hidden">
>  <tr><td>1st Item in row group 2</td></tr>
> <tr><td>2nd Item in row group 2</td></tr>
> </tbody>
> </table>
>
> I've seen several
> tutorials on how to deal with collapsible list, but so far nothing on
> tables. What I haven't been able to figure out so far is how to determine
> which tbody is connected to which thead. I think xpath could help me here
> but I admit I don't know it that well so I'm not sure. something like
> $(".rowGroup thead").onClick.(function(){
> $(tbody between this and next thead).show();
> }
> );
> Can anyone help or point me in the right direction of where I can buy a
> clue?
>
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
>

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to