Access Parent Element Within href
<p>So... this is a simple question with a simple answer, but somehow my RTFMing isn't proving any results.</p>

<p>I have a link within a div, like so:</p>

<p><code>&lt;div&gt; &lt;a href=''&gt;Close&lt;/a&gt;</code></p>

<p>I'd like to close that div with that link, and I've been trying the following code:</p>

<p><code>&lt;div&gt; &lt;a href="javascript:this.parentNode.style.display='none'"&gt;Close&lt;/a&gt;</code></p>

<p>However, it still hasn't worked... any suggestions are greatly appreciated.</p>
