title: How to remove image url on Autocomplete in Materialize CSS?
body: <p>I have this JavaScript method that get all my data from a <code>department</code> table using API:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
    $(document).ready(function() {
        //Autocomplete
        $(function() {
          $.ajax({
            type: 'GET',
            url: 'http://127.0.0.1/EnrollmentSystem/api/department/read.php',
            success: function(response) {
              var departmentArray = response;
              var dataDepartment = {};
              //console.log(departmentArray['records']['0'].name);
              console.log(departmentArray['records'].length);
              for (var i = 0; i &lt; departmentArray['records'].length; i++) {
                console.log(departmentArray['records'][i]);
                dataDepartment[departmentArray['records'][i].name] = departmentArray['records'][i].name; //departmentArray[i].flag or null
              }
              $('input.autocomplete_department').autocomplete({
                data: dataDepartment,
              });
            }
          });
        });
    });
  &lt;/script&gt;
  </code></pre>
  
  <p>and i am calling it on my page using this one:</p>
  
  <pre><code>&lt;div class="row lt-row-content input-field"&gt;
      &lt;div class="col s12 m3 l3 lt-input-field"&gt;Department&lt;/div&gt;
      &lt;div class="col s12 m8 l8 lt-input-field"&gt;&lt;input type="text" name="" id="autocomplete-input" class="autocomplete_department lt-input-field"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>My concern is how can i remove the image shown on the Autocomplete?</p>
  
  <p><a href="https://i.stack.imgur.com/8eDm4.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8eDm4.jpg" alt="enter image description here"></a></p>
  
  <p>As for the my Object only the <strong>id</strong> and <strong>name</strong> which i include on my models</p>
  
  <pre><code>class Department{
      private $conn;
      private $table_name = "department";
  
      public $id;
      public $name;
  
      public function __construct($db){
          $this-&gt;conn = $db;
      }
  ...
  </code></pre>
  
  <p>This is the output of <code>console.log(departmentArray['records'][i]);</code></p>
  
  <p><a href="https://i.stack.imgur.com/NPFqv.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NPFqv.jpg" alt="enter image description here"></a></p>