Wizzud wrote:

$('table') ... gets all tables
$('table').eq(1) ... gets the second table
$('#formelement').parent().parent().parent() ... gets the 'great-grandad' of
#formelement

or, to look back up the DOM for a table ...
var _find = $('#formelement');
while(!_find.is('table')){ _find = _find.parent(); }
...but I would recommend putting another test in this loop, just in case
#formelement doesn't have a table above it!

$('#formelement').parents('table:eq(0)');



--Klaus

Reply via email to