parents() Demo
View source to see how to get the closest parent to an element
Outer Table (no border)
Nested Table (should have border)
#myelement