How can I find a parent with jQuery?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2112822/jquery-find-all-the-parents-up-to-a-specific-parent">jQuery: find all the parents up to a specific parent</a>  </p>
</blockquote>



<p>I have the following:</p>

<pre><code>&lt;div class="modal-window block-border"&gt;
    &lt;ul class="action-tabs right"&gt;
        &lt;li&gt;&lt;a title="Close window" href="#"&gt;&lt;img width="16" height="16" src="images/icons/fugue/cross-circle.png"&gt;&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
    &lt;div class="block-content no-title"&gt;
        &lt;div style="min-width: 200px; min-height: 40px; width: 300px; height: 221px;" class="modal-content modal-scroll"&gt;
            &lt;h1&gt;Admin&lt;/h1&gt;
            &lt;div class="block-header"&gt;
                Please login
            &lt;/div&gt;
            &lt;form novalidate="novalidate" action="/MyAccount/Access/JsonLogin" data-ajax="true" data-ajax-method="POST" data-ajax-mode="replace" data-ajax-success="dialogSuccess()" data-ajax-update="#update-message" name="login-form" id="login-form" method="post"&gt;
</code></pre>

<p>I have a reference to the form which is $(this). Given this reference how can I find a reference to the class with the top most div called "modal-window" ?</p>
