I am looking for an efficient way to expand/collapse hierarchical table rows using jQuery. The problem is, that the expand and collapse functionality differs.
The table html in your post is not valid (tr enclosed by td). On the properly structured table, this code works.
$("tr.level_0").live("click", function () { $(this).nextUntil(".level_0").toggle(); });