title: jquery autocomplete: this.menu undefined
body: <p>I'm using the jQuery UI Autocomplete for some data. Now I have 3 autocomplete elements and 2 of these work fine, one doesn't. At the start of the page he gives me the error <code>elem.ownerDocument is null</code>. When I put text into the <code>input</code> field he find result but I get the error <code>this.menu is undefined (jquery.js line 6012)</code> which refers to the <code>ul list</code> where the result should be shown.</p>
  
  <p>Here some code:</p>
  
  <pre><code>$("#iName").autocomplete({
      source: widget.festivals_list,
      autofocus: true,
      focus: function (e, ui) {
          return false;
      },
      search: function (event, ui){
          ownFest = true;
          $("#iDate").removeAttr("disabled");
          $("#iTime").removeAttr("disabled");
      },
      select: function (event, ui) {
          ownFest = false;
          $(event.target).val(ui.item.label);
          selectedN = ui.item.value;
          $(widget.festivals).each(function fn(){
              if(this.id == ui.item.value){
                  $("#iDate").val(this.date).attr("disabled", "disabled");
                  $("#iTime").val(this.time).attr("disabled", "disabled");
              }
          });
          return false;
      }
  });
  </code></pre>
  
  <p>HTML CODE: </p>
  
  <pre><code>&lt;table&gt;
                      &lt;tr&gt;
                          &lt;td&gt;Type the name&lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                          &lt;td&gt;&lt;input type="text" id="iFest"/&gt;&lt;/td&gt;
                      &lt;/tr&gt;
                  &lt;/table&gt;
  </code></pre>
  
  <p>This creates the typical number of attributes on my <code>input</code> tag and creates the <code>ul</code> list.</p>
  
  <pre><code>&lt;ul class="ui-autocomplete ui-menu ui-widget ui-widget-content ui-corner-all" role="listbox" aria-activedescendant="ui-active-menuitem"&gt;&lt;/ul&gt;
  
  &lt;input id="iFest" class="ui-autocomplete-input" type="text" autocomplete="off" role="textbox" aria-autocomplete="list" aria-haspopup="true"&gt;
  </code></pre>
  
  <p>Someone who also had these problems?
  Thanks</p>
  
  <p>(Using jQuery 1.5.2 and jQuery UI 1.8.11)</p>
  
  <p>Thanks</p>