views:

67

answers:

1

How can I make the jQuery autocomplete show "Loading..." in the dropdown while it's loading?

A: 

The plugin adds a class "ac_loading" to the input while its loading. The default stylesheet defines a background image (indicator.gif) for that class.

You can put here your text or image dynamic...

Edit: MM I see you using the jQueryUI autocomplete. But I think you can do it the same way. Just put text in the class the autocomplete plugin creates after you define your object as autocomplete

michel
How could I set the text in it instead of using indicator.gif? Is there a way to do that through css?
babonk
mm you can't put thext into a element with css... you should do that with jquery, or doing it the simple way and add a picture with the text loading... But I see you can't dynamic add text with jQuery to the ac_loading class because the plugin creates the 'ac_results' div only when you give the plugin a hint by though a key-event
michel
michel, how (and where) should I add text w/ jquery to the class?
babonk