Jquery Autocomplete Select TypeError: ui.item undefined

前端 未结 3 954
谎友^
谎友^ 2021-01-12 08:58

I am using jquery ui 1.10.3 and jquery 2.0.3. I am trying to use the autocomplete function to change text of another text box on selecting an option from the suggested optio

3条回答
  •  孤街浪徒
    2021-01-12 09:01

    turns out I had to change

    data("ui-autocomplete" )._renderItemData = function( ul, item ) {
    

    and

    .data( "item.autocomplete", item )
    

    to

    data("ui-autocomplete" )._renderItem = function( ul, item ) {
    

    and

    .data( "item.autocomplete-item", item )
    

    hope this helps anyone who has migration issues with jQuery UI

提交回复
热议问题