I had to work off of bare <table><tr><td></td></tr></table> tags and
eventually got it working.  If you can assign unique ID's to each
table header section and then unique classes to each grouping of
subsection rows, it can be done.

<tr id="section1">
  <td />
</tr>
<tr class="subsection1">
  <td />
</tr>
<tr class="subsection1">
  <td />
</tr>

<tr id="section2">
  <td />
</tr>
<tr class="subsection2">
  <td />
</tr>
<tr class="subsection2">
  <td />
</tr>

For the work I was doing on a phpBB, I could create unique ID's for
each forum section and then I could traverse the rows and assign
classes to each subsection based on its previous ID.  I can forward
you the code later tonight if its of interest.

Shane



On 2/27/07, rolfsf <[EMAIL PROTECTED]> wrote:
>
> Last week I posted this collapsing table:
>
> http://www.monkeypuzzle.net/testfiles/jquery/Accordion_table/index_2.html
>
> Building on that, I passed it over to developers who are implementing it in
> .NET with ajax... they've discovered that .NET is having problems with the
> tbody tags, and are wondering if there is another way of doing this.
>
> So, if we're forced to change the markup (who knows, maybe we'll yet find a
> way), how would I modify the jquery to find all the rows between the
> tr.group that gets clicked and the next tr.group, and toggle them?
>
> Right now, it's:
> <script language="JavaScript" type="text/javascript">
>         $(function(){
>                 $('#list1 tbody tr.group').click(function() {
>                         $(this).siblings().toggle();
>                         $(this).children('th').toggleClass("expand_group")
>                         return false;
>                 })
>         });
> </script>
>
>
>
>
> --
> View this message in context: 
> http://www.nabble.com/collapsing-table---selecting-rows-between-specific-other-rows-tf3303419.html#a9188885
> Sent from the JQuery mailing list archive at Nabble.com.
>
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>


-- 
---------
Bender: "Amy, you like cute things so I baked you a pony."
---------

http://www.reefs.org - Where reefkeeping begins on the internet.
http://www.advancedaquarist.com - High quality, free monthly publication for
the reef keeping hobbyist.
http://www.aquaristcourses.org - Distance learning courses for the
marine aquarist.

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

Reply via email to