i've been trying to figure the best method to achieve obtaining siblings between specific selectors.
Let me be concrete with an example: ... <tr class="rowTypeA"> ... </tr> <tr class="rowTypeB"> <td>value 1</td> ... <td>value 2</td> </tr> <tr class="rowTypeB"> <td>value 3</td> ... <td>value 4</td> </tr> <tr class="rowTypeB"> <td>value</td> ... <td>value 2</td> </tr> <tr class="rowTypeA"> ... </tr>
If I have a selector to find the table cell (td) with value equal to "value 3", i'm looking to obtain the parent (using parent()) to obtain the row with class equal to "rowTypeB". With this, I'm looking to get all siblings with rowTypeB BETWEEN the tr's with class "rowTypeA".