title: Jquery autocomplete is not a function
body: <p>I am trying to implement JQuery's autocomplete function into an input field on a website. The inspector is giving me an error that says:</p>
  
  <p>"Uncaught TypeError: $(...).autocomplete is not a function".</p>
  
  <p>I believe the problem might have to do with the order of my script tags but so far everything I have tried has not worked. Here is my content:</p>
  
  <pre><code>&lt;head&gt;
  &lt;title&gt;&lt;/title&gt;
  &lt;link href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" rel="Stylesheet"&gt;
  &lt;script src="~/Scripts/jquery-1.10.2.min.js"&gt;&lt;/script&gt;
  &lt;script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;script type="text/javascript"&gt;
      var schools = new Array();
          $(document).ready(function () {
  
              $("#school").autocomplete ({
                  minLength: 2,
                  source: schools,
                  select: function (e, ui) {
                      e.target.value = ui.item.label;
                      $("#schoolValue").val(ui.item.value);
                      e.preventDefault();
                  }
              });
      &lt;/script&gt;
    &lt;/body&gt;
  </code></pre>