This answer -- jQueryUI: how can I custom-format the Autocomplete plug-in results? -- describes how to monkeypatch the jqueryUI autocomplete widget, so that it displays things in a particular way. The approach it uses is to replace a function on the $.ui.autocomplete.prototype
.
This means that all autocomplete widgets will get this patch.
Is there a way to patch the autocomplete widget for just one input element? What is it?
When I examine $('$input').autocomplete
, I don't see any of the autocomplete fns there (_renderItem, _renderMenu, _search, etc).
data(...)
is null or not an object." Isdata
actually unsupported in this case? Examples from api.jquery.com/data work properly, and the only warning on that page is that IE doesn't allow fiddling with XML in this way. – Sarraceniaceous