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