Combobox

hi

i want to have a combobox , by selecting a case of dropdown , the textfield be autocomplete According to selected case.

But I don’t know what should I do? :(

plz help me

thanks

Hello,

I didn’t understand very well, so let me rephrase:

  1. You have two fields: a select and an input.

  2. When the select gets a certain value, you want the input to transform into an autocomplete

Is it what you want?

If that’s the case, you’ll simply have a jQuery change event handler on the select, and if the value matches the one you need, you run on the fly the autocomplete instantiation on the input field.

Otherwise, if you’re looking for how to make a combo with autocomplete, assuming you use jQuery UI, here you go:

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