Search code examples
javascriptajaxjqueryautocompleteautosuggest

Auto Suggest Dropdownlist


Is there a JavaScript library that allows me to do the following:

  • An auto suggest dropdownlist that does an Ajax call to database to get the results.

  • The user is only able to select values returned from the Ajax call.

  • I want to format the data results so I can show multiple columns.

Ex. User types in an address and it returns address_id, street (10 Lincoln Ave), city, state and zipcode

I wanted to do a auto suggest textbox, but that does not restrict the user from entering values that are not returned from the Ajax call.

Thank you, -Tesh


Solution

  • I suggest you take a look at jQueryUI autocomplete. It does the first 2, but you can customize it to get the 3rd requirement too.