Jörn Zaefferer wrote:
Robert O'Rourke wrote:
http://www.sanchothefat.com/dev/jsdemos/combo-box.html
That is worth another plugin, which must be highly integrated with the
autocomplete plugin. I like your unobtrusive approach of starting with
both a dropdown and an input field.
Due to lack of time I can currently only try to get you started.
Please try to insert this into the autocomplete plugin, before or
after the $input.keydown(... block:
$input.bind("show", function() {
if ( !select.visible() ) {
onChange(0, true);
}
});
Afterwards you should be able to trigger showing the selectbox
programmatically:
$("#myinput").autocomplete(...).trigger("show");
You're already setting minChars to zero, so that should work...
I see what you mean, I'll keep trying to work it out in the meantime.
That show event trigger didn't seem to work, it's on the demo page now.
It might be a bit beyond my abilities at the moment but we shall see.
Cheers, I'll keep you posted
Rob