Suja Shyam Suja Shyam - 1 month ago 35
jQuery Question

Autocomplete dropdown using asp.net mvc

I have a dropdown in my CreateDocumentTemplate ciew

<%=Html.DropDownList("Part", (SelectList)ViewData["Part"])%>

which is populated from database.
I want to this dropdown to be autocomplete. How can I acoomplish this?

Answer

Use for example jQueryUI (even comes packaged with MVC 3)

http://jqueryui.com/demos/autocomplete/#combobox