trying to add hierarchy constraints to delegate()
<p>I've got a delegate statement that works like so:</p>

<pre><code>$("body").delegate("tr[type='option']",'mouseenter',function(){
</code></pre>

<p>The problem is that it's grabbing  elements from tables I don't want. So I tried:</p>

<pre><code>$("body").delegate("table[class='ms-MenuUI'] &gt; tr[type='option']",'mouseenter',function(){
</code></pre>

<p>Which isn't working at all (though I'm not getting any console errors). Just wondering how I can tighten this up so it's only grabbing table rows from the specific table I want.</p>

<p>NOTE: the table does not exist in the DOM on page load, and is dynamically created/destroyed after the doc is ready, thus the need for delegate to begin with.</p>

<p>EDIT:
As per my comment below, I'm using [] because the attribute of the parent is variable, and it's my understanding that they should work interchangeably with the attribute short-hand (i.e. '.'). A sample of the dynamic code would be:</p>

<pre><code>$('body').delegate('table[' + parentAttribType + "='" + parentAttribValue + "'] &gt; tr[" + rowAttrbType + "='" + rowAttribValue + "']"), 'mouseenter', function(){
</code></pre>

<p>Thanks!</p>
