How do I queue up a list of table rows and do a slideUp() or slideDown() in jQuery?
<p>Say I have a table with 50 rows.  I have parent/child relationships in that table.  I'm trying to click on a parent row and expand/collapse all the children rows.  I have that working, but I want to slideUp the set of rows as one set.  How would I do this?</p>

<p>Say the user clicks on a link in a tr.  Here is an example function of when a user clicks a link inside the row.  Note the TODO:  That is what I'm trying to solve.</p>

<pre><code>  var row = $(this).closest("tr")

    while(true) {

       if(parseInt(row.attr("data-Level"), 10) &gt; selectedRowLevel)
{
    // TODO: I want to put all these rows in a queue maybe and the slideUp all together, not just row by row.
    row.slideToggle();
}
else
break;

row = row.next();

}
</code></pre>
