var parent = element.parentElement;
var x = document.getElementById("ID").parentElement.nodeName;
var x = document.getElementById("myLI").parentNode;
var parent = element.parentElement;
//OR
e.target.parentNode //target parent
<div>
<span onclick="this.parentElement.style.display = 'none';">x</span>
</div>
e.target.parentNode //target parent