Hi there, We are using the rather nifty autocomplete plugin from http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ but have run into a problem
$("#autocomplete").result( function(event, data, formatted) { alert(formatted) }).autocomplete(["c++", "java", "php", "coldfusion", "javascript", "asp"], {}) This works as expected but we really would like to create the input element as <input id="autocomplete" type="text" value="java"> and automatically have the result listner be invoked on creation of the autocomplete (why we bind the result listener prior to constructing the plugin) . We can use the search() function, but for some reason the plugin code stalls 25 millis before being completely initialized ( line 514 in v. 1.1) We can of course wait 26 millis before calling search, but in our context that is causing some other trouble. (ie we would have to delay a whole slew of other stuff as well) So the question is : Is there a particular reason why the list is not populated synchronusly? You can see a live example at http://jsbin.com/oweri It doesn't call search atm, but you can add that yourself : setTimeout(function() { $("#autocomplete").search()},26) Thanks in advance Johannes and Jens