Jquery ui auto complete

I used Jquery ui autocompletion with version 1.8.2, and later I switched to 1.8.11. I'm having problems.

auto complete in jquery 1.8.2

1.8.2

auto complete in jquery 1.8.11

1.8.11

$('#term').autocomplete({
        minLength    : 4,
        source        : rootPath+'/search',
        select: function(event, ui) 
        {
            window.location =  ui.item.url;
        }
    });

thank

+3
source share
2 answers

From http://jqueryui.com/demos/autocomplete/ :

The label is always treated as text, if you want the label to be treated as html you can use the html Scott González extension.

And the above extension is here: https://github.com/scottgonzalez/jquery-ui-extensions/blob/master/autocomplete/jquery.ui.autocomplete.html.js .

+1
source

HTML Auto Complete, ._renderItem.

, , select , .

, jquery

http://jqueryui.com/autocomplete/#custom-data

+2

All Articles