title: jQuery UI - Formatting the autocomplete results. Add image possible?
body: <p>We're moving from the <a href="http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/" rel="nofollow noreferrer">bassistance.de autocomplete</a> to jQuery UI autocomplete.
  I can't find as many examples for the jQuery UI version, the documentation seems a little sparse. That could just be me.</p>
  
  <p>I'd like to know if anyone has an example/tutorial which explains how to alter the look and feel of the autocomplete drop down. My code is as follows:</p>
  
  <pre><code>$( "#SearchInput" ).autocomplete({
      source: function( request, response ) {
          $.ajax({
              url: "http://servername/index.pl",
              dataType: "json",
              data: {
                  term: request.term
              },
              success: function( data ) {
                  response( $.map( data.items, function( item ) {
                      return {
                          label: item.id + " - " + item.label,
                          value: item.id
                      }
                  }));
              }
          });
      },
  });
  </code></pre>
  
  <p>This works, I get the ID and Label displayed seperated by a hyphen.
  Ideally I'd like to know how to format how the results are displayed.
  I'd like the ID then below the ID the label. If possible I'd like to know how to display an image to the right of the text.</p>
  
  <p>If anyone has any pointers on how to achieve this I'd be greatful.</p>