jquery autocomplete this.source is not a function error

后端 未结 7 1335
心在旅途
心在旅途 2020-12-11 00:04

I\'ve implemented autocomplete on an input field, but the box does not show up and firebug returns \"this.source is not a function\". I\'ve used autocomplete on other fields

相关标签:
7条回答
  • 2020-12-11 01:03

    Search at the end of jquery.autocomplete.js the following section:

    Create chainable jQuery plugin:

    $.fn.devbridgeAutocomplete = function (options, args) {....
    

    This devbridgeAutocomplete is an alternative plugin to access to the same functionality using this lines:

    if (!$.fn.autocomplete) {
        $.fn.autocomplete = $.fn.devbridgeAutocomplete;
    }
    

    So.. you can use devbridgeAutocomplete instead of autocomplete or any name by changing this $.fn.devbridgeAutocomplete

    0 讨论(0)
提交回复
热议问题