Hi Friends, Today while I was working on a project in which I needed to finding the parent div id. Finding the parent div in easiest way using is with jQuery. You can easily find parent div element using jQuery. Look at below link for parent functionality of jQuery. You can find nth div element using this parent function. Look at below code for 2nd parent div. In the same way you can find the nth parent HTML element.
By above code you can find id of nth parent of current div or action.
I hope this post helpful for someone. If you have any question then you can ask me anytime or post it in comment.
Hostgator Hosting in 1 Cent Coupon Code – “1CENTHECOUPON” (Without Quotes).