title: What does formatResult and formatItem options do in JQuery Autocomplete?
body: <p>Am a bit confused here, what does the formatResult and formatItem do in the JQuery Autocomplete plugin?</p>
  
  <p>I have a function that is returning a comma separated string (from Django), but my autocomplete function is unable to split the string into individual entries/rows, how can i achieve this using autocomplete functions? </p>
  
  <p>e.g the returned result looks like this and this what autocomplete is showing :-
  <strong>["one","oneTwo", "Onethree", "anotherOne"]</strong></p>
  
  <p>I want when showing in the autocomplete field to have it split like this:-</p>
  
  <pre><code>one
  oneTwo
  Onethree
  anotherOne
  </code></pre>
  
  <p>I have a feeling i can use the formatResult and formatItem but i dont know how, there are no good examples out there !!</p>
  
  <p>my code in the html template:</p>
  
  <pre><code> function autoFill(){
             $("#tags").autocomplete("/taglookup/", {
          width: 320,
          max: 4,
          highlight: false,
          multiple: true,
          multipleSeparator: " ",
          scroll: true,
          scrollHeight: 300
           });
         }
  </code></pre>
  
  <p>Am using Dajango to process the GET request.</p>
  
  <p>Gath</p>