This post is about how to use jquery ui autocomplete with ASP.NET 5. Long back I wrote a blog post about using JQuery autocomplete with ASP.NET.
Here is the sample action methods, which returns an array of strings - programming languages from JQuery UI autocomplete demo.
And here is the client side code.
Autocomplete textbox data is loaded using the source property, on keydown, using JQuery ajax, request send to the server with query string. Based on query string, data returned as JSON. And this data mapped back to the textbox. And here is the screenshot of the web page running on my system.
Here is the getJSON version of the code
Happy Programming :)
What do you think? I would like to hear your thoughts, suggestions, and questions in the comments section below.