"get the prev <a> to <span>" that's all i need... but the ".prev()" selector only seems to go "up" the DOM, it won't go back into the table row that the two tables share
On Sep 10, 5:29 pm, "ryan.j" <ryan.joyce...@googlemail.com> wrote: > not sure if there is a neat way of doing it, but providing the nested > tables aren't too busy would it be horribly inefficient to do > something like this? > > get the prev <a> to <span>, > check if <span> is closest to <a>, > if false get the prev <a> to the current <a> and test again, > if true you have your element.