title: Adding Jquery autocomplete to a Html.EditorFor
body: <p>I want to add an autocomplete (suggestion function) to an editor field in my create menu.</p>
  
  <p>I have this basic razor view  <code>@Html.EditorFor(model =&gt; model.Title)</code> and 
  I want to add my autocomplete to this. </p>
  
  <p>Previously I have used </p>
  
  <pre><code>&lt;input type="text" name="q"  data-autocomplete="@Url.Action("QuickSearch", "Person")" /&gt;
  &lt;input  type="submit"  name="submit"  value="Find FullName" /&gt;
  </code></pre>
  
  <p>And I wondered how to implement this.</p>
  
  <p>My Jquery searches for data-autocomplete</p>
  
  <pre><code>$(document).ready(function () {
      $(":input[data-autocomplete]").each(function () {
          $(this).autocomplete({ source: $(this).attr("data-autocomplete") });
     });
  })
  </code></pre>