Dan G. Switzer, II schrieb:
> jQuery.fn.autocompleteLocal = function(data, options) {
> return jQuery.fn.autocomplete(null, options, data);
> }
>
> But this doesn't work. How can I extend the jQuery.fn.autocomplete plug-in
> to do what I want?
Your example doesn't make much sense. Maybe something like this is what
you are looking for:
jQuery.fn.autocompleteLocal = function(url, options) {
var defaults = { ... };
return this.autocomplete(url, jQuery.extend(defaults, options));
}
--
Jörn Zaefferer
http://bassistance.de
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/