title: TypeError: $(...).autocomplete is not a function ,Error in PHP autocomplete textbox
body: <pre><code>&lt;link rel="stylesheet" type="text/css" href="&lt;?php echo base_url('media'); ?&gt;/autocomplete/jquery-ui.css" /&gt;
  &lt;script type="text/javascript" src="&lt;?php echo base_url(); ?&gt;media/js/order_new/jquery-ui.js"&gt;&lt;/script&gt;
  
  
  &lt;script&gt;
    $(document).ready(function() {
      // alert("hii");
      $('#other').autocomplete({
        source: '&lt;?php echo base_url('
        index.php ') ?&gt;/frontend/location_autocomplete'
      });
    });
  &lt;/script&gt;
  
  
  
  &lt;input type="text" id="other" name="other" value="" placeholder="what your looking for?" class=" new_search" data-provide="typeahead" data-items="4" data-source='[]'&gt;
  </code></pre>