I have a table with some <tr> is used as divide other rows: <tr class="versionSection">.... <tr>... <tr>.. <tr>.. <tr class="versionSection">.... <tr>.. <tr>.. ... <tr class="versionSection">.... <tr>.. <tr>..
etc. In lieu of changng the HTML page, I want to see if I can find the <tr> after each class="versionSection" row. I want to do a toggler for each section. //---------------------------------------------------------- // - Click title row to toggle the remaing section rows. //---------------------------------------------------------- var $f = $(".versionSection"); $f.click(function() { var $r = $(this).next("tr > !.versionSection"); $r.toggle(); }); //---------------------------------------------------------- Its close, but obviously not right. It only gets the first next row. I need it to return all the rows until the next .versionSection class row.. Any tips in a selector? TIA -- HLS