A jQuery object does not have a rows
or cells
property. Assuming you're trying to get the second td
of the second tr
(note that the indexes are zero-based, so the item with index of 1
is the second), then you need to use jQuery's DOM traversal methods. In this case, find()
and :eq
. Try this:
nextGen($('#grundtabelle').find('tr:eq(1) td:eq(1)'));
If the nextGen()
function is expecting a DOMElement instead of a jQuery object then you can retrieve that from the jQuery object like this:
nextGen($('#grundtabelle').find('tr:eq(1) td:eq(1)')[0]);
// or:
nextGen($('#grundtabelle').find('tr:eq(1) td:eq(1)').get());