Quite complicated. You should be using some identifier to do this and
not rely on the HTML tree, and tables are meant for tabular data.
This might work anyway, if there are no a after .timer:
$('.timer').parents('table').find('a:last')
or
$('table:has(.timer)').prev('table').find('a')
On Sep
btw, the HTML would be something like
table
tbody
tr
td
table
tbody
tr
tda href=...Update/a/td
/tr
/tbody
/table
/td
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.
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
4 matches
Mail list logo