title: jQueryUI autocomplete not working with dialog and zIndex
body: <p>I ran into an interesting issue with jQueryUI autocomplete in a dialog box.</p>
  
  <p>My dialog HTML looks like this:</p>
  
  <pre><code>&lt;div id="copy_dialog"&gt;
      &lt;table&gt;
          &lt;tbody&gt;
              &lt;tr&gt;
                  &lt;th&gt;Title:&lt;/th&gt;
                  &lt;td&gt;&lt;input type="text" class="title" name="title"&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;th&gt;Number:&lt;/th&gt;
                  &lt;td&gt;&lt;input type="text" name="number"&gt;&lt;/td&gt;
              &lt;/tr&gt;
          &lt;/tbody&gt;
      &lt;/table&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>When I run the jQueryUI autocomplete on the above HTML, it works perfect.</p>
  
  <p>When I open it up using dialog</p>
  
  <pre><code>$('#copy').click(function()
  {
      $('#copy_dialog').dialog({
          autoOpen: true,
          width: 500,
          modal: false,
          zIndex: 10000000,
          title: 'Duplicate',
          buttons: {
              'Cancel': function()
              {
                  $(this).dialog('close');
              },
              'Save': function()
              {
                  $(this).dialog('close');
              }
          }
      });
  
      return false;
  });
  </code></pre>
  
  <p>Then in FireBug, I can see autocomplete is still working. It's requesting and receiving results, but I no longer see a list of options below the input field.</p>
  
  <p>My thought is that this has something to do with the zIndex on the dialog box being much greater than what the autocomplete menu gives, but I don't know for sure.
  I'm still researching exact details of what's happening, but I'm hoping someone here will have some idea for me.</p>
  
  <p><strong>Edit</strong>
  I tried removing the zIndex from the dialog and my autocomplete starts showing up.
  Unfortunately, I need that zIndex value to get over the dreadfully high zIndex of the menubar, which I can't change (don't have access to that area of the code). So if there's a way to add a zIndex to the autocomplete, that would be fantastic; until then, I'll probably just remove the zIndex from the dialog and make sure it doesn't show up around the menubar area.</p>