Carl - Jake is pointing you to the example I worked out a couple days ago - I
faced the same problem, and despite being quite a newbie I was able to
figure out a solution. I highly recommend making use of either Jörn's jquery
API or the Visual jQuery site.

r.



Jake McGraw 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/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Collapsible-Tables-tf3274184.html#a9105247
Sent from the JQuery mailing list archive at Nabble.com.


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

Reply via email to