Holen Sie sich das übergeordnete Element JavaScript
var parent = element.parentElement;
Successful Sandpiper
var parent = element.parentElement;
var x = document.getElementById("myLI").parentNode;
e.target.parentNode //target parent
// If you want to target the parent by tagName you could use .closest(selector); like :
var x = document.getElementById("myLI").closest('section');
// NOTE : Take a look to the Browser compatibility section.