In a custom javascript variable, how can you get the parent element of the clicked element?
<div>
<h2>Lorem Ipsum</h2>
<a href="#"></a>
</div>
For instance, I want to go get the content of the <H2> when I click the <a> to log Lorem Ipsum when the <a> is clicked.