Try this. When you click on a
rowTypeB td, get its parent, find the first
rowTypeA preceeding it, then select everything up to the next
rowTypeA:
- $('tr.rowTypeB td').click(function() {
- $(this).parent().prevAll('tr.rowTypeA:first').nextUntil('tr.rowTypeA')...;
- });