conflict between two jquery plugins with same function name

Viewed 6986

I am working in a large site that has 2 conflicting jquery plugins included for doing autocmplete.

1) jquery.autocomplete.js (not part of jquery ui) that does :

$.fn.extend({
    autocomplete: function   ...

2) jquery.ui.autocomplete.js (from the latest jquery ui library), that also uses the autocomplete keyword.

$.widget( "ui.autocomplete", {   ...

Is there a way to specify that i am using only the second, jquery.ui widget when calling

$( "#tags" ).autocomplete ...

without changing the 2 files?

2 Answers
Related