The parentElement PropertyThe parentElement property returns the parent element of the present element. Unlike the parentNode property, you only use this property with elements, not any kind of node. (Nodes can include text nodes, attribute nodes, and so on.) You can see the support for this property in Table 5.43. Table 5.43. The parentElement Property
Here's an example: var parentElement = document.getElementById("element1").parentElement |