title: How do I get this jQuery autocomplete code to work in FireFox?
body: <p>Hey guys,
  I've got this jQuery code which works in Chrome and Safari but not on IE or FireFox. What could be wrong with it? </p>
  
  <pre><code>&lt;script&gt;
  
  $(document).ready(function() {
      var myArr = [];
  
      $.ajax({
          type: "GET",
          url: "airports.xml", 
          dataType: "xml",
          success: parseXml,
          complete: setupAC,
          failure: function(data) {
              alert("XML File could not be found");
              }
      });
  
      function parseXml(xml)
      {
          //find every query value
          $(xml).find("airport").each(function()
          {
              myArr.push($(this).attr("label"));
          }); 
      }
  
      function setupAC() {
          $("input#depart_from").autocomplete({
                  source: myArr,
                  minLength: 1,
                  select: function(event, ui) {
                      $("input#depart_from").val(ui.item.value);
                      $("#submitform").submit();
                  }
          });
      }
  });
  
  &lt;/script&gt;
  </code></pre>
  
  <p>And here is my input element </p>
  
  <pre><code>&lt;input id="depart_from" type="text" name="depart_from" placeholder="Depart from"/&gt;
  </code></pre>
  
  <p>Any suggestions?</p>