I'm using jQuery to manipulate table rows that are paired within a table. I'm trying to select rows based on found items from my previous jQuery where if the row contains a visible image, I need that row and it's next sibling. I can get the row using:
$("img[src*='file.png']:not(:hidden)").closest("tr");
Because I'm also after the sibling row, it seemed logical to me that the next selector would work:
$("img[src*='file.png']:not(:hidden)").closest("tr+next");
The first query produces the first row of the pair, but the second query returns nothing. Am I misinterpreting the documentation - I thought the selector was:
$("prev+next");
I obviously seem to be missing something here...