Dan G. Switzer, II schrieb:
What would be passed to the function? The containing li? a jQuery object
containing the containing li? The HTML text?
The source is available here:
http://dev.jquery.com/browser/trunk/plugins/autocomplete/jquery.autocomplete
.js
[...]
At the moment it runs against li.innerHTML.
So far it was internal only, I'd pass the formatted string as the first
argument and the other stuff in addition.
Formatting would be very flexible then. Default takes a simple string
and adds simple highlighting. Then you can replace that simple string
with some custom formatting and default highlighting. Or you use
formatting and include highlighting and switch off default
highlighting... I hope we really need that degree.
Ah, and thanks Dan for the regex and the link, I'll test that.
--
Jörn Zaefferer
http://bassistance.de