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