title: $(...).autocomplete is not a function
body: <p>Using auto complete in jquery. I am facing a problem which  </p>
  
  <blockquote>
    <p>TypeError: $(...).autocomplete is not a function</p>
  </blockquote>
  
  <p>I included all the necessary script files. I am not able to understand where I made the mistake. How can I resolve this?</p>
  
  <pre><code>&lt;script type="text/javascript" src="&lt;?php echo base_url();?&gt;assets/js/jquery-1.9.1.js" &gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="&lt;?php echo base_url();?&gt;assets/js/jquery-1.7.1.min.js" &gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="&lt;?php echo base_url();?&gt;assets/js/jquery.hashchange.min.js" &gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="&lt;?php echo base_url();?&gt;assets/js/jquery.easing.1.3.js" &gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="&lt;?php echo base_url();?&gt;assets/js/jquery.tools.min.js" &gt;&lt;/script&gt;
  
  &lt;script&gt;
  $(document).ready(function () {
      $('#namanyay-search-box').keyup(function (e) {
          var searched = $('#namanyay-search-box').val()
          $.getJSON('get_data', 'title=' + searched, function (result) {
              var elements = [];
              $.each(result, function (i, val) {
                  elements.push(val.merchant_name)
              })
  
              $('#namanyay-search-box').autocomplete({
                  source: elements
              })
          })
      });
  
      var indicator = $('#indicator'),
          indicatorHalfWidth = indicator.width() / 2,
          lis = $('#tabs').children('li');
  
      $("#tabs").tabs("#content section", {
          effect: 'fade',
          fadeOutSpeed: 0,
          fadeInSpeed: 400,
          onBeforeClick: function (event, index) {
              var li = lis.eq(index),
                  newPos = li.position().left + (li.width() / 2) - indicatorHalfWidth;
              indicator.stop(true).animate({
                  left: newPos
              }, 600, 'easeInOutExpo');
          }
      });
  });
  
  &lt;/script&gt;
  </code></pre>