combining .not() and parents()
<pre><code>&lt;div id="a"&gt;
  &lt;div id="b" nopopup&gt;
    &lt;div id="c"&gt; 
      &lt;div id="d"&gt;
</code></pre>

<p>I use a jQuery .hover() to popup a menu when particular <code>&lt;div&gt;</code>s are moused over. A string, $selector, identifies which <code>&lt;div&gt;</code>s get a hover.</p>

<pre><code>$($selector).hover( 
  // popup the menu
)
</code></pre>

<p>That works. I now want to thwart operation of the .hover() when an ancestor <code>&lt;div&gt;</code> has the valueless attribute "nopopup", as <code>&lt;div&gt;</code> b above does. That "nopopup" would thwart any hover for c and d, even if the $selector selected them. The number of levels between the hover candidate and the thwarting nopopup varies.</p>

<p>I need something like:</p>

<pre><code>$($selector).not( one of the selected node's parents has the attribute "nopopup" ).hover( 
  // popup the menu
)
</code></pre>

<p>What goes in those parentheses? Or is this the wrong approach?</p>
