title: ASP.NET MVC 3 AutoComplete
body: <p>I pasted the sample code from <a href="http://jqueryui.com/demos/autocomplete/#event-create" rel="nofollow">here</a> in my .cshtml file just to see if it works with hard-coded data. </p>
  
  <p>For some ready, the autocomplete doesn't work when I type.</p>
  
  <p>The following is the code:</p>
  
  <pre><code>&lt;script&gt;
  $(function () {
      var availableTags = [
          "ActionScript",
          "AppleScript",
          "Asp",
          "BASIC",
          "C",
          "C++",
          "Clojure",
          "COBOL",
          "ColdFusion",
          "Erlang",
          "Fortran",
          "Groovy",
          "Haskell",
          "Java",
          "JavaScript",
          "Lisp",
          "Perl",
          "PHP",
          "Python",
          "Ruby",
          "Scala",
          "Scheme"
      ];
      $("#tags").autocomplete({
          source: availableTags
      });
  });
  &lt;/script&gt;
  &lt;div class="demo"&gt;
  
  &lt;div class="ui-widget"&gt;
      &lt;label for="tags"&gt;Tags: &lt;/label&gt;
      &lt;input id="tags"&gt;
  &lt;/div&gt;
  
  &lt;/div&gt;&lt;!-- End demo --&gt;
  </code></pre>
  
  <p>There are other controls and tables etc after this of course. </p>
  
  <p>Can anyone spot where I may be going incredibly wrong?</p>