title: jQuery Autocomplete - Left Mouse Click not firing Select event
body: <p>Folks,</p>
  
  <p>Hi there. I've googled and overflowed, but haven't found an answer. Perhaps that's because I'm only of middling expertise with jQuery / javascript.</p>
  
  <blockquote>
    <p>jQuery - 1.6.3<br/> jQuery UI - 1.8.16</p>
    
    <p>Testing in Firefox 7.0.1</p>
  </blockquote>
  
  <p><strong>I've got a simple console.log() statement in the select event of an autocomplete call. Keyboard entry fires it. Left mouse-click does not.</strong> </p>
  
  <p>I don't think this is about using ui.item.value correctly (as other questions on here have been), but am happy to be mistaken.</p>
  
  <p>If anyone can help it would be greatly appreciated.</p>
  
  <p>Code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
   $(function() { 
    $("#fieldname").autocomplete({ 
     source: function(request, response) { 
      $.ajax({ 
       url: "feed.webservice?term=" + request.term, 
       dataType: "xml", 
       success: function(xml) { 
        var data = $("record",xml).map(function() { 
         return { 
          id: $("id", this).text(), 
          label: $("label", this).text(), 
          value: $("value", this).text() 
         }; 
        }); 
        response(data); 
       } 
      }); 
     }, 
     minLength: 3, 
     select: function(event, ui) { 
      console.log("User selected: " + ui.item.value); 
     } 
    }); 
   });
  &lt;/script&gt;
  </code></pre>
  
  <ul>
  <li>Fyi, the code to retrieve the xml feed could probably use some cleaning, but at the moment it all seems to work okay. Unless there IS something in there that is screwing around with the mouse select.</li>
  </ul>
  
  <p>XML Code Sample:</p>
  
  <pre><code>&lt;records&gt;
  &lt;record&gt;&lt;id&gt;3566&lt;/id&gt;&lt;label&gt;1 Belmore Road&lt;/label&gt;&lt;value&gt;1 Belmore Road&lt;/value&gt;&lt;/record&gt;
  &lt;record&gt;&lt;id&gt;9053&lt;/id&gt;&lt;label&gt;1 Chalmers Street, Belmore&lt;/label&gt;&lt;value&gt;1 Chalmers Street, Belmore&lt;/value&gt;&lt;/record&gt;
  &lt;record&gt;&lt;id&gt;9872&lt;/id&gt;&lt;label&gt;1 Dinora Street, Belmore&lt;/label&gt;&lt;value&gt;1 Dinora Street, Belmore&lt;/value&gt;&lt;/record&gt;
  &lt;record&gt;&lt;id&gt;8717&lt;/id&gt;&lt;label&gt;1 Norma Avenue, Belmore&lt;/label&gt;&lt;value&gt;1 Norma Avenue, Belmore&lt;/value&gt;&lt;/record&gt;
  &lt;record&gt;&lt;id&gt;8776&lt;/id&gt;&lt;label&gt;1/107A Belmore Road, Peakhurst&lt;/label&gt;&lt;value&gt;1/107A Belmore Road, Peakhurst&lt;/value&gt;&lt;/record&gt;
  &lt;record&gt;&lt;id&gt;2326&lt;/id&gt;&lt;label&gt;1/109 Belmore Road, Peakhurst&lt;/label&gt;&lt;value&gt;1/109 Belmore Road, Peakhurst&lt;/value&gt;&lt;/record&gt;
  &lt;record&gt;&lt;id&gt;6026&lt;/id&gt;&lt;label&gt;1/17 Drummond Street, Belmore&lt;/label&gt;&lt;value&gt;1/17 Drummond Street, Belmore&lt;/value&gt;&lt;/record&gt;
  &lt;record&gt;&lt;id&gt;6346&lt;/id&gt;&lt;label&gt;1/221-223 Belmore Road South Road, Riverwood&lt;/label&gt;&lt;value&gt;1/221-223 Belmore Road South Road, Riverwood&lt;/value&gt;&lt;/record&gt;
  &lt;record&gt;&lt;id&gt;8038&lt;/id&gt;&lt;label&gt;1/33 Anderson Street, Belmore&lt;/label&gt;&lt;value&gt;1/33 Anderson Street, Belmore&lt;/value&gt;&lt;/record&gt;
  &lt;record&gt;&lt;id&gt;1831&lt;/id&gt;&lt;label&gt;1/38 Sharp, Belmore&lt;/label&gt;&lt;value&gt;1/38 Sharp, Belmore&lt;/value&gt;&lt;/record&gt;
  &lt;record&gt;&lt;id&gt;8711&lt;/id&gt;&lt;label&gt;1/40 Yangoora Road, Belmore&lt;/label&gt;&lt;value&gt;1/40 Yangoora Road, Belmore&lt;/value&gt;&lt;/record&gt;
  &lt;record&gt;&lt;id&gt;1837&lt;/id&gt;&lt;label&gt;1/5 Allan, Belmore&lt;/label&gt;&lt;value&gt;1/5 Allan, Belmore&lt;/value&gt;&lt;/record&gt;
  &lt;record&gt;&lt;id&gt;8241&lt;/id&gt;&lt;label&gt;1/50 Albert Street, Belmore&lt;/label&gt;&lt;value&gt;1/50 Albert Street, Belmore&lt;/value&gt;&lt;/record&gt;
  &lt;record&gt;&lt;id&gt;5315&lt;/id&gt;&lt;label&gt;1/58 Belmore Road&lt;/label&gt;&lt;value&gt;1/58 Belmore Road&lt;/value&gt;&lt;/record&gt;
  &lt;record&gt;&lt;id&gt;5317&lt;/id&gt;&lt;label&gt;1/58 Belmore Road, Peakhurst&lt;/label&gt;&lt;value&gt;1/58 Belmore Road, Peakhurst&lt;/value&gt;&lt;/record&gt;
  &lt;record&gt;&lt;id&gt;4232&lt;/id&gt;&lt;label&gt;1/65 Lucerne Street, Belmore&lt;/label&gt;&lt;value&gt;1/65 Lucerne Street, Belmore&lt;/value&gt;&lt;/record&gt;
  &lt;record&gt;&lt;id&gt;1988&lt;/id&gt;&lt;label&gt;1/65 Lucerne, Belmore&lt;/label&gt;&lt;value&gt;1/65 Lucerne, Belmore&lt;/value&gt;&lt;/record&gt;
  &lt;record&gt;&lt;id&gt;9129&lt;/id&gt;&lt;label&gt;1/7 Allan Avenue, Belmore&lt;/label&gt;&lt;value&gt;1/7 Allan Avenue, Belmore&lt;/value&gt;&lt;/record&gt;
  &lt;record&gt;&lt;id&gt;8236&lt;/id&gt;&lt;label&gt;1/7 Anderson Street, Belmore&lt;/label&gt;&lt;value&gt;1/7 Anderson Street, Belmore&lt;/value&gt;&lt;/record&gt;
  &lt;record&gt;&lt;id&gt;1836&lt;/id&gt;&lt;label&gt;10/33 Paxton, Belmore&lt;/label&gt;&lt;value&gt;10/33 Paxton, Belmore&lt;/value&gt;&lt;/record&gt;
  &lt;/records&gt;
  </code></pre>