I am currently trying to find the parent of a parent of an element. I have a link being clicked that is in a
You can do parent of a parent and it's very easy: etc., and I\'d like to get the
.closest()
is not always best option specially when you have same element construct.var parent = $('.myDiv').parent();
var parentParent = $(parent).parent();
var parentParentParent = $(parentParent).parent();