I feel this should be an easy problem, but alas I find myself stuck. What I’m trying to do is set up a way so that every time you click on a cell on a table(or anywhere), it displays the parentNode of each element, essentially traversing up the DOM tree. I figured I would need to use elem.parentNode, but I’m stuck on the traversing part. Any gurus out there that can help me out, it would be greatly appreciated.
Share
1 Answer