65.9K
CodeProject is changing. Read more.
Home

Getting parent table element from a td

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.33/5 (2 votes)

Dec 3, 2010

CPOL
viewsIcon

10880

Getting parent table element from a td

Here is a short trick of getting a parent table element from a td in that table.. I have tried .parent() function, but was not successful .. alternatively, this worked out:
$(this).closest("table");