title: Jquery autocomplete in codeigniter retrieving values but not displaying them
body: <p>After a few hours of deciphering tutorials, I finally got codeigniter and jquery autocomplete to work with each other...kind of.</p>
  
  <p>Firebug is displaying the correct search terms back in JSON format, but the drop down box is not displaying any text.  If there are 2 results, it displays 2 empty rows.</p>
  
  <p>you can see it 'not working' here: <a href="http://rickymason.net/blurb/main/home" rel="nofollow">http://rickymason.net/blurb/main/home</a></p>
  
  <p>JS: </p>
  
  <pre><code>$(document).ready(function() {
      $(function(){
          $( "#filter" ).autocomplete({
              source: function(request, response) {
                  $.ajax({
                  url: "http://rickymason.net/blurb/main/search/",
                  data: { term: $("#filter").val()},
                  dataType: "json",
                  type: "POST",
                  success: function(data){
                      response(data);
                  }
              });
          },
          minLength: 2
          });
      });
  });
  </code></pre>
  
  <p>Controller: </p>
  
  <pre><code>    public function search()
      {
          $term = $this-&gt;input-&gt;post('term', TRUE);
          $this-&gt;thread_model-&gt;autocomplete($term);
      }
  </code></pre>
  
  <p>Model: </p>
  
  <pre><code>    public function autocomplete($term)
      {
          $query = $this-&gt;db-&gt;query("SELECT tag
              FROM filter_thread ft
              INNER JOIN filter f
              ON ft.filter_id = f.filter_id
              WHERE f.tag LIKE '%".$term."%'
              GROUP BY tag");
          echo json_encode($query-&gt;result_array());
      }
  </code></pre>
  
  <p>Hopefully its an easy fix!</p>
  
  <p>Thanks</p>