Manoj Wadhwani
Manoj Wadhwani

Reputation: 1547

How to do auto complete in city textbox

I have state and city dropdown list in an ASP.NET 3.5 application. However, I want city as a textbox, and upon me typing in it, autocomplete mode should occur.

I want to implement it through jQuery, so can anyone please send me the code for this?

Upvotes: 2

Views: 1839

Answers (3)

Richard JP Le Guen
Richard JP Le Guen

Reputation: 28753

The most straightforward way is to use the jQuery Autocompleye plugin.

If that doesn't tickle your fancy, try checking out this question. If you're having problems specifically with Asp.NET in conjunction with jQuery and AJAX, it looks like this question may be of use as well.

Upvotes: 0

Alex
Alex

Reputation: 14628

$("#yourtextboxID").autocomplete({source: ["Los Angeles","Las Vegas","Madrid"]});

Upvotes: 0

Related Questions