Reputation: 9533
Is there an easier way to say
$('element').parent('parentElement').parent('grandParentElement');
Answer: Try parents() or closest()
Upvotes: 4
Views: 1785
Reputation: 9533
$('element').parents('grandParentElement');
Notice "parents" and not "parent"
Upvotes: 0