parentNode js code example
Example 1: comment obtenir l'élément parent javascript
var parent = document.getElementById("myElement").parentElement;
Example 2: parentnode parentnode
function nthParent(element, n) {
while(n-- && element)
element = element.parentNode;
return element;
}