Is there an easier way to say
$('element').parent('parentElement').parent('grandParentElement');
Answer: Try parents() or closest()
$('element').closest('grandParentElement');
$('element').parent().parent();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With